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

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, ebx
sub ecx, eax
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x4c7c18
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
lea edi, [ebx + 0x9c]
mov dword [esp + 0x18], edx
mov ecx, dword [edi - 0x1bc]
sub edi, 0x124
sub esi, 0x124
sub ebx, 0x124
mov dword [esi + 4], ecx
mov edx, dword [edi - 0x94]
mov dword [esi + 8], edx
mov eax, dword [edi - 0x90]
mov dword [esi + 0xc], eax
mov ecx, dword [edi - 0x8c]
mov dword [esi + 0x10], ecx
mov dl, byte [edi - 0x88]
lea eax, [edi - 0x84]
mov byte [esi + 0x14], dl
lea ecx, [esi + 0x18]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
lea edx, [esi + 0x24]
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
lea ecx, [edi - 0x78]
mov eax, dword [edi - 0x78]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
lea eax, [esi + 0x30]
mov ecx, dword [ecx + 8]
mov dword [edx + 8], ecx
lea edx, [edi - 0x6c]
mov ecx, dword [edi - 0x6c]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
mov eax, dword [edi - 0x60]
mov dword [esi + 0x3c], eax
mov ecx, dword [edi - 0x5c]
mov dword [esi + 0x40], ecx
mov edx, dword [edi - 0x58]
mov dword [esi + 0x44], edx
mov eax, dword [edi - 0x54]
mov dword [esi + 0x48], eax
mov ecx, dword [edi - 0x50]
mov dword [esi + 0x4c], ecx
mov ecx, ebx
lea eax, [esi + 0x50]
sub ecx, esi
mov edx, 2
mov ebp, dword [ecx + eax]
mov dword [eax], ebp
add eax, 4
dec edx
jne 0x4c7a59
lea eax, [esi + 0x58]
mov edx, 2
mov ebp, dword [eax + ecx]
mov dword [eax], ebp
add eax, 4
dec edx
jne 0x4c7a6c
mov dl, byte [edi - 0x3c]
mov byte [esi + 0x60], dl
mov al, byte [edi - 0x3b]
mov byte [esi + 0x61], al
mov cl, byte [edi - 0x3a]
mov byte [esi + 0x62], cl
mov edx, dword [edi - 0x38]
lea eax, [edi - 0x34]
lea ecx, [esi + 0x68]
push eax
mov dword [esi + 0x64], edx
call fcn.004c7d40
mov ecx, dword [edi - 0x28]
mov dword [esi + 0x74], ecx
mov edx, dword [edi - 0x24]
mov dword [esi + 0x78], edx
mov eax, dword [edi - 0x20]
mov dword [esi + 0x7c], eax
mov ecx, dword [edi - 0x1c]
mov dword [esi + 0x80], ecx
mov edx, dword [edi - 0x18]
mov dword [esi + 0x84], edx
mov eax, dword [edi - 0x14]
lea ecx, [esi + 0x8c]
lea edx, [edi - 0x10]
cmp edx, ecx
mov dword [esi + 0x88], eax
je 0x4c7ae2
mov eax, dword [edi - 0xc]
mov edx, dword [edi - 0x10]
push eax
push edx
call fcn.00403150
lea ecx, [esi + 0x98]
lea eax, [edi - 4]
cmp eax, ecx
je 0x4c7afb
mov edx, dword [edi]
mov eax, dword [edi - 4]
push edx
push eax
call fcn.00403150
lea ecx, [edi + 8]
push ecx
lea ecx, [esi + 0xa4]
call fcn.004c7ee0
mov edx, dword [edi + 0x14]
mov dword [esi + 0xb0], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0xb4], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0xb8], ecx
mov edx, dword [edi + 0x20]
mov dword [esi + 0xbc], edx
mov eax, dword [edi + 0x24]
mov dword [esi + 0xc0], eax
mov ecx, dword [edi + 0x28]
lea edx, [edi + 0x2c]
mov dword [esi + 0xc4], ecx
lea eax, [esi + 0xc8]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 0xd4]
mov edx, dword [edx + 8]
mov dword [eax + 8], edx
lea eax, [edi + 0x38]
mov edx, dword [edi + 0x38]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0xe0], ecx
mov edx, dword [edi + 0x48]
lea eax, [edi + 0x4c]
mov dword [esi + 0xe4], edx
lea ecx, [esi + 0xe8]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0xf4], ecx
mov edx, dword [edi + 0x5c]
lea eax, [edi + 0x60]
lea ecx, [esi + 0xfc]
cmp eax, ecx
mov dword [esi + 0xf8], edx
je 0x4c7bc9
mov edx, dword [edi + 0x64]
mov eax, dword [eax]
push edx
push eax
call fcn.00403150
lea ecx, [edi + 0x6c]
push ecx
lea ecx, [esi + 0x108]
call fcn.004c7fd0
mov edx, dword [edi + 0x78]
mov dword [esi + 0x114], edx
mov eax, dword [edi + 0x7c]
mov dword [esi + 0x118], eax
mov ecx, dword [edi + 0x80]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x11c], ecx
mov edx, dword [edi + 0x84]
dec eax
mov dword [esi + 0x120], edx
mov dword [esp + 0x18], eax
jne 0x4c79a9
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x10]
pop ebx
ret