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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
test ebx, ebx
mov dword [esp + 0x24], eax
je 0x4d03b6
test ecx, ecx
je 0x4d03b6
lea eax, [ebx + ecx]
cmp eax, 2
jne 0x4d03d4
mov dword [esp + 4], edi
mov dword [esp], esi
call ebp
test al, al
jne 0x4d03c0
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], edi
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004d1140
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
cmp edx, eax
jle 0x4d0465
mov eax, edx
mov edi, dword [esp + 0x3c]
shr eax, 0x1f
add eax, edx
sar eax, 1
imul esi, eax, 0x38
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x24]
add esi, dword [esp + 0x38]
sub eax, edi
mov ebx, eax
sar ebx, 3
imul ebx, ebx, 0xb6db6db7
test eax, eax
jle 0x4d05b2
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebp
mov esi, ebx
jmp 0x4d0443
mov edx, esi
lea edi, [ebx + 0x38]
sub edx, ebp
lea esi, [edx - 1]
test esi, esi
jle 0x4d04e4
mov ebp, esi
mov eax, dword [esp + 0x30]
sar ebp, 1
imul ebx, ebp, 0x38
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
add ebx, edi
mov dword [esp], ebx
call eax
test al, al
jne 0x4d0431
mov esi, ebp
jmp 0x4d043b
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x38]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], eax
imul eax, eax, 0x38
mov edx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x3c]
mov edi, eax
sub eax, esi
mov ebx, eax
add edi, edx
sar ebx, 3
imul ebx, ebx, 0xb6db6db7
test eax, eax
jle 0x4d05c5
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
mov edi, ebx
jmp 0x4d04c2
mov edx, edi
lea esi, [ebx + 0x38]
sub edx, ebp
lea edi, [edx - 1]
test edi, edi
jle 0x4d0580
mov ebp, edi
mov eax, dword [esp + 0x30]
sar ebp, 1
imul ebx, ebp, 0x38
mov dword [esp], eax
mov eax, dword [esp + 0x34]
add ebx, esi
mov dword [esp + 4], ebx
call eax
test al, al
je 0x4d04b0
mov edi, ebp
jmp 0x4d04ba
mov ebx, edi
sub ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov eax, ebx
add ebx, esi
sar eax, 3
imul eax, eax, 0xb6db6db7
sub dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
mov edx, dword [esp + 0x48]
sub dword [esp + 0x2c], edx
mov eax, dword [esp + 0x3c]
mov byte [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.004c94a0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.004d0370
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4d03b6
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4d03b6
mov eax, dword [esp + 0x28]
add eax, dword [esp + 0x2c]
cmp eax, 2
jne 0x4d05d3
mov esi, edi
mov edi, ebx
jmp 0x4d03a9
mov eax, esi
sub eax, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
sar eax, 3
imul eax, eax, 0xb6db6db7
sub dword [esp + 0x2c], eax
mov dword [esp + 0x40], eax
mov ebx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub dword [esp + 0x28], edx
add ebx, esi
jmp 0x4d050f
mov ebx, esi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x44], 0
jmp 0x4d0507
mov esi, dword [esp + 0x38]
mov dword [esp + 0x40], 0
jmp 0x4d059f
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
jmp 0x4d03e4