Function at 0x4d12e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [0x55ca98]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov ebp, 1
push edi
mov dword [esp + 0x1c], esi
mov ecx, dword [esi]
mov eax, dword [esi + 4]
push dword [ecx + 0x24]
mov eax, dword [eax + 0x2760]
mov edi, dword [ecx + 0x240]
mov dword [esp + 0x3c], eax
call fcn.004d6c80
mov edx, dword [esi]
add esp, 4
mov ecx, dword [edx + 0x244]
cmp eax, ecx
cmovae eax, ecx
cmp edi, eax
mov dword [esp + 0x30], eax
mov ecx, eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x3c], eax
cmovb ecx, edi
mov eax, dword [edx + 0x20]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x18]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 0
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov eax, dword [ecx + 0x2688]
mov dword [esp + 0x54], eax
cmp dword [edx + 0x10], 0
je 0x4d13b1
cmp dword [edx + 0x14], 0
je 0x4d139f
cmp dword [ecx + 0x25c8], 0
je 0x4d139f
mov eax, dword [ecx + 0x25cc]
xor ecx, ecx
test eax, eax
sete cl
xor ebx, ebx
test eax, eax
setne bl
jmp 0x4d13a3
mov ecx, ebp
mov ebx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
test ecx, ecx
je 0x4d1417
jmp 0x4d13bd
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], 0
xor ebx, ebx
cmp dword [edx + 0x18], ebx
jbe 0x4d1413
xor edi, edi
mov eax, dword [esi + 4]
push dword [edx + 0x24]
push dword [eax + ebx*4 + 4]
call fcn.004cf260
mov ecx, dword [esi]
lea edi, [edi + 0x360]
mov edx, eax
add esp, 8
cmp edx, dword [ecx + 0x1c]
cmova edx, dword [ecx + 0x1c]
mov ecx, dword [esi + 4]
mov dword [ecx + edi + 0x150], edx
mov ecx, dword [esi + 4]
mov dword [ecx + edi - 0x60], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
sub ecx, edx
mov dword [eax + ebx*4 + 0xdc], ecx
inc ebx
mov edx, dword [esi]
cmp ebx, dword [edx + 0x18]
jb 0x4d13c6
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4d156e
xor ebx, ebx
mov edx, 0x24
xor ebp, ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], edx
mov eax, dword [esi]
cmp dword [eax + 0x1c], 0x20
jb 0x4d14f5
test ebx, ebx
je 0x4d14f5
mov ebx, dword [eax + 0x24]
xorps xmm0, xmm0
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esp + 0x20], ebx
movlpd qword [esp + 0x64], xmm0
mov ecx, dword [edx + eax]
mov ebp, dword [eax + 0x2c]
mov dword [esp + 0x18], ecx
test ebx, ebx
je 0x4d14b9
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov eax, ecx
and eax, 1
or eax, 0
jne 0x4d148a
or ecx, dword [ebp + edi*8]
or edx, dword [ebp + edi*8 + 4]
inc edi
cmp edi, ebx
jb 0x4d1473
mov eax, ecx
or eax, edx
je 0x4d14b9
mov eax, ecx
xor ebx, ebx
and eax, 1
or eax, ebx
jne 0x4d14ef
nop dword [eax + eax]
shrd ecx, edx, 1
inc ebx
mov eax, ecx
sar edx, 1
and eax, 1
or eax, 0
je 0x4d14a0
test ebx, ebx
je 0x4d14ef
xor edi, edi
jmp 0x4d14c6
xor edi, edi
mov ebx, 1
cmp dword [esp + 0x20], edi
jbe 0x4d14ef
mov esi, dword [esp + 0x18]
nop word [eax + eax]
mov eax, dword [ebp + edi*8]
mov ecx, ebx
mov edx, dword [ebp + edi*8 + 4]
call fcn.00509e90
inc edi
mov dword [esi], eax
lea esi, [esi + 4]
cmp edi, dword [esp + 0x20]
jb 0x4d14d0
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x2c]
jmp 0x4d1508
push dword [eax + 0x24]
mov eax, dword [esi + 4]
push dword [edx + eax]
call fcn.004cf260
add esp, 8
mov ebx, eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov edx, dword [ecx + 0x1c]
cmp ebx, edx
cmovbe edx, ebx
mov ebx, dword [esp + 0x24]
mov dword [eax + ebp + 0x1fb0], edx
xor ecx, ecx
mov eax, dword [esi + 4]
test ebx, ebx
setne cl
inc ebx
mov dword [esp + 0x24], ebx
mov dword [eax + ebp + 0x1e00], edx
add ebp, 0x360
mov eax, dword [esi]
mov dword [esp + 0x2c], ebp
add ecx, dword [eax + 0x1c]
mov eax, dword [esi + 4]
sub ecx, edx
mov edx, dword [esp + 0x28]
mov dword [eax + edx + 0xd8], ecx
add edx, 4
mov dword [esp + 0x28], edx
cmp edx, 0x2c
jb 0x4d1434
mov ebx, dword [esp + 0x14]
mov ebp, 1
cmp dword [esp + 0x10], 0
je 0x4d1638
mov ecx, dword [esi]
xor edi, edi
cmp dword [ecx + 0x18], edi
jbe 0x4d1638
mov edx, dword [esi + 4]
nop dword [eax]
cmp dword [ecx + 0x258], 0
je 0x4d15af
test ebp, ebp
je 0x4d15af
lea eax, [edi + 1]
cmp eax, dword [ecx + 0x18]
jne 0x4d15af
mov dword [edx + 0x2760], 1
mov ecx, dword [esi + 4]
lea eax, [edi + 0x964]
lea eax, [ecx + eax*4]
push eax
lea eax, [edi + 0x95a]
lea eax, [ecx + eax*4]
push eax
lea eax, [edi*8 + 0x104]
add eax, ecx
push eax
lea eax, [edi + 0x49d]
lea eax, [ecx + eax*8]
push eax
lea eax, [edi + 0x463]
lea eax, [ecx + eax*8]
push eax
push dword [ecx + edi*4 + 4]
lea eax, [esp + 0x54]
push dword [ecx + edi*4 + 0xdc]
push eax
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004d07a0
add esp, 0x2c
test eax, eax
je 0x4d1772
mov edx, dword [esi + 4]
xor ecx, ecx
mov eax, dword [edx + edi*4 + 0x2568]
lea eax, [eax + edi*2]
imul eax, eax, 0x1b0
cmp dword [eax + edx + 0x158], ecx
cmovne ebp, ecx
mov ecx, dword [esi]
inc edi
cmp edi, dword [ecx + 0x18]
jb 0x4d1590
test ebx, ebx
je 0x4d18c7
xor ebx, ebx
xor edi, edi
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 4]
mov ebp, dword [edi + ecx + 0xfc]
cmp ebp, 0x20
ja 0x4d1665
mov edx, dword [edi + ecx + 0x24]
jmp 0x4d1668
mov edx, dword [ecx + 0x2c]
lea eax, [ecx + 0x25b0]
add eax, edi
push eax
lea eax, [ecx + 0x2588]
add eax, edi
push eax
lea eax, [ecx + 0x144]
add eax, ebx
push eax
lea eax, [ecx + 0x2528]
add eax, ebx
push eax
lea eax, [ecx + 0x2358]
add eax, ebx
push eax
push edx
push ebp
lea eax, [esp + 0x58]
push eax
push dword [esp + 0x50]
push dword [esp + 0x58]
push esi
call fcn.004d07a0
add esp, 0x2c
test eax, eax
je 0x4d1772
add edi, 4
add ebx, 8
cmp edi, 8
jb 0x4d1650
mov eax, dword [esi]
xor ebx, ebx
mov edi, dword [esi + 4]
xor ebp, ebp
mov eax, dword [eax + 0x14]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4d16eb
cmp dword [edi + 0x25c8], ebx
jbe 0x4d16eb
mov edi, dword [edi + 0x25cc]
neg edi
sbb edi, edi
and edi, 3
jmp 0x4d174c
mov edx, dword [edi + 0x2594]
mov eax, dword [edi + 0x2590]
mov ecx, dword [edi + 0x25b4]
lea ebx, [eax + edx]
add eax, ecx
mov dword [esp + 0x68], eax
lea eax, [ecx + edx]
mov dword [esp + 0x6c], eax
xor edx, edx
mov eax, dword [edi + 0x25b0]
add eax, ecx
mov dword [esp + 0x64], ebx
xor ecx, ecx
mov dword [esp + 0x70], eax
cmp dword [esp + 0x1c], ecx
setne cl
lea ecx, [ecx*2 + 1]
nop
mov eax, dword [esp + ecx*4 + 0x64]
mov edi, ecx
cmp eax, ebx
cmovae edi, edx
inc ecx
cmp eax, ebx
mov edx, edi
cmovae eax, ebx
mov ebx, eax
cmp ecx, 3
jle 0x4d1730
xor ebx, ebx
mov eax, dword [esi + 4]
mov dword [esp + 0x48], edi
push dword [eax + 0x25c0]
lea eax, [esp + 0x40]
push eax
call fcn.004f0d30
add esp, 8
test eax, eax
jne 0x4d1787
mov eax, dword [esi]
mov dword [eax], 7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005091c5
add esp, 0x68
ret
cmp edi, 3
ja case.default.0x4d1790
jmp dword [edi*4 + 0x4d19b4]
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2568], 0x1b0
lea ebp, [ecx + 0x4b8]
imul eax, dword [ecx + 0x256c], 0x1b0
add ebx, 0x158
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xdc]
mov edi, dword [eax + 0xe0]
jmp 0x4d1882
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2568], 0x1b0
lea ebp, [ecx + 0x1fb8]
imul eax, dword [ecx + 0x258c], 0x1b0
add ebx, 0x158
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xdc]
mov edi, dword [eax + 0x100]
jmp 0x4d1882
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x258c], 0x1b0
lea ebp, [ecx + 0x4b8]
imul eax, dword [ecx + 0x256c], 0x1b0
add ebx, 0x1fb8
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x100]
mov edi, dword [eax + 0xe0]
jmp 0x4d1882
mov ecx, dword [esi + 4]
imul ebx, dword [ecx + 0x2588], 0x1b0
lea ebp, [ecx + 0x1fb8]
imul eax, dword [ecx + 0x258c], 0x1b0
add ebx, 0x1c58
add ebx, ecx
add ebp, eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xfc]
mov edi, dword [eax + 0x100]
jmp 0x4d1882
xor ebx, ebx
xor ebp, ebp
xor edi, edi
xor ecx, ecx
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
push ebx
push ecx
push dword [esp + 0x48]
push esi
call fcn.004ce950
add esp, 0x14
test eax, eax
je 0x4d1772
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
push ebp
push edi
push dword [esp + 0x48]
push esi
call fcn.004ce950
add esp, 0x14
test eax, eax
je 0x4d1772
jmp 0x4d1954
mov eax, dword [esi + 4]
push dword [eax + 0x25c0]
lea eax, [esp + 0x40]
push eax
call fcn.004f0d30
mov ecx, dword [esi]
add esp, 8
test eax, eax
jne 0x4d18fc
pop edi
pop esi
pop ebp
mov dword [ecx], 7
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.005091c5
add esp, 0x68
ret
xor edi, edi
cmp dword [ecx + 0x18], edi
jbe 0x4d1954
mov ebx, 0xdc
nop dword [eax + eax]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + ebx + 0x248c]
push dword [ecx + 0x25c0]
lea eax, [eax + edi*2]
imul eax, eax, 0x1b0
add eax, 0x158
add eax, ecx
push eax
push dword [ecx + ebx]
push dword [esp + 0x48]
push esi
call fcn.004ce950
add esp, 0x14
test eax, eax
je 0x4d1772
mov eax, dword [esi]
inc edi
add ebx, 4
cmp edi, dword [eax + 0x18]
jb 0x4d1910
mov eax, dword [esi]
cmp dword [eax + 0x14], 0
je 0x4d1980
mov eax, dword [esi + 4]
inc dword [eax + 0x25c8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x25c8]
cmp eax, dword [ecx + 0x25c4]
jb 0x4d1980
mov dword [ecx + 0x25c8], 0
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x48]
pop edi
mov dword [ecx + 0x25cc], eax
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x34]
pop esi
pop ebp
mov dword [eax + 0x2760], ecx
mov eax, 1
mov ecx, dword [esp + 0x68]
pop ebx
xor ecx, esp
call fcn.005091c5
add esp, 0x68
ret