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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x78]
lea ebx, [ebp + 0xd4]
mov word [ebp + 0x5a], ax
mov ecx, dword [esi + 0x564]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x18], ebx
add ebx, 4
cmp eax, ecx
push edi
jne 0x4cdacf
mov edx, dword [esi]
mov edi, dword [ebp + 8]
mov ecx, esi
call dword [edx + 0x1c]
cmp edi, eax
je 0x4cdaf4
mov eax, dword [esi]
mov edi, dword [esi + 0x564]
mov ecx, esi
call dword [eax + 0x1c]
mov ecx, ebx
mov dword [ecx], edi
mov dword [ecx + 4], eax
add ebx, 8
mov dword [esp + 0x10], 1
mov dword [ebp + 4], edi
mov dword [ebp + 8], eax
mov ax, word [esi + 0x56c]
cmp word [ebp + 0xc], ax
jne 0x4cdb2d
mov dl, byte [ebp + 0xe]
cmp dl, byte [esi + 0x56e]
jne 0x4cdb2d
mov cl, byte [ebp + 0xf]
cmp cl, byte [esi + 0x56f]
jne 0x4cdb2d
mov dl, byte [ebp + 0x10]
cmp dl, byte [esi + 0x570]
jne 0x4cdb2d
mov cl, byte [ebp + 0x11]
cmp cl, byte [esi + 0x571]
je 0x4cdb80
mov dl, byte [esi + 0x56e]
mov cl, byte [esi + 0x570]
mov byte [esp + 0x16], dl
mov dl, byte [esi + 0x571]
mov word [esp + 0x14], ax
mov al, byte [esi + 0x56f]
mov byte [esp + 0x19], dl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
mov edx, ebx
mov dword [edx], eax
mov byte [esp + 0x18], cl
mov cx, word [esp + 0x18]
mov word [edx + 4], cx
mov edx, dword [esp + 0x10]
add ebx, 6
or edx, 2
mov dword [ebp + 0xc], eax
mov dword [esp + 0x10], edx
mov word [ebp + 0x10], cx
movzx ecx, word [esi + 0xa4]
cmp dword [ebp + 0x14], ecx
jne 0x4cdb98
movzx eax, word [esi + 0xb2]
cmp dword [ebp + 0x18], eax
je 0x4cdbba
movzx eax, word [esi + 0xb2]
mov edx, ebx
mov dword [edx], ecx
mov dword [edx + 4], eax
mov edx, dword [esp + 0x10]
add ebx, 8
or edx, 4
mov dword [esp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4cdbc7
mov dword [esp + 0x7c], eax
jmp 0x4cdbe8
test eax, eax
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
jge 0x4cdbd9
fadd dword [0x512728]
fstp dword [esp + 0x7c]
fld dword [esi + 0x14]
fdiv dword [esp + 0x7c]
fstp dword [esp + 0x7c]
mov edi, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push edi
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
lea ecx, [esp + 0x34]
call fcn.0042bf10
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esi + 0x574]
mov dword [esp + 0x7c], eax
fld dword [esp + 0x7c]
mov dword [esp + 0x14], ecx
fsub dword [esp + 0x14]
fcomp qword [0x52ad58]
fnstsw ax
test ah, 0x41
je 0x4cdd04
movzx edx, word [ebp + 0x20]
movzx eax, word [esp + 0x20]
mov dword [esp + 0x7c], edx
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
mov dword [esp + 0x7c], eax
fdiv dword [0x525088]
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fdiv dword [0x525088]
fsubp st(1)
fcomp qword [0x52ad58]
fnstsw ax
test ah, 0x41
je 0x4cdd04
movzx ecx, word [ebp + 0x22]
movzx edx, word [esp + 0x22]
mov dword [esp + 0x7c], ecx
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
mov dword [esp + 0x7c], edx
fdiv dword [0x525088]
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fdiv dword [0x525088]
fsubp st(1)
fcomp qword [0x52ad58]
fnstsw ax
test ah, 0x41
je 0x4cdd04
movzx eax, word [ebp + 0x24]
movzx ecx, word [esp + 0x24]
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
mov dword [esp + 0x7c], ecx
fdiv dword [0x525088]
fild dword [esp + 0x7c]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
fdiv dword [0x525088]
fsubp st(1)
fcomp qword [0x52ad58]
fnstsw ax
test ah, 0x41
jne 0x4cddad
mov edx, dword [esi + 8]
mov ecx, esi
mov dword [esp + 0x14], edx
call fcn.00492520
test al, al
je 0x4cdd29
cmp word [esi + 0x56c], 0x1648
je 0x4cdd29
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x1c]
test eax, eax
mov edi, dword [esi + 0x574]
jne 0x4cdd3c
mov dword [esp + 0x7c], eax
jmp 0x4cdd5d
test eax, eax
mov dword [esp + 0x7c], eax
fild dword [esp + 0x7c]
jge 0x4cdd4e
fadd dword [0x512728]
fstp dword [esp + 0x7c]
fld dword [esi + 0x14]
fdiv dword [esp + 0x7c]
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push eax
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x28]
call fcn.0042bf10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, ebx
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
add ebx, 0xc
or eax, 8
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], ecx
mov al, byte [esi + 0x572]
cmp byte [ebp + 0x28], al
je 0x4cddc9
mov ecx, dword [esp + 0x10]
mov byte [ebx], al
inc ebx
or ecx, 0x10
mov dword [esp + 0x10], ecx
mov byte [ebp + 0x28], al
xor eax, eax
mov edx, dword [esi]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
lea eax, [esp + 0x50]
push eax
mov ecx, esi
call dword [edx + 0xe4]
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebp
call fcn.004d9dd0
test al, al
jne 0x4cde72
mov eax, dword [esi]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x48], edx
push ecx
mov ecx, esi
mov dword [esp + 0x50], edx
call dword [eax + 0xe4]
mov edi, ebx
mov ecx, 0xa
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x10]
or ecx, 0x20
lea edx, [esp + 0x28]
mov dword [esp + 0x10], ecx
push edx
mov ecx, ebp
add ebx, 0x28
call fcn.004d9e80
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
sub ebx, ebp
sub ebx, 0xd4
test eax, eax
mov dword [ecx], eax
mov word [ebp + 0x5a], bx
jne 0x4cde90
mov word [ebp + 0x5a], ax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret 4