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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x2c]
lea esi, [ebp + 0xc]
push ecx
mov ecx, esi
mov dword [esp + 0x18], ebp
call fcn.004415b0
mov edi, dword [esp + 0x28]
mov ebx, dword [esi + 4]
xor eax, eax
cmp edi, eax
je 0x475152
cmp edi, esi
je 0x475159
call fcn.004c000c
xor eax, eax
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x47540a
cmp edi, eax
fld qword [0x4f8a48]
fstp qword [esp + 0x3c]
mov word [esp + 0x36], ax
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], eax
jne 0x475185
call fcn.004c000c
cmp esi, dword [edi + 4]
jne 0x47518f
call fcn.004c000c
cmp dword [esp + 0x78], 0xffffffff
mov edx, dword [esi + 0x14]
mov ax, word [edx + 0x10]
mov word [esp + 0x34], ax
jne 0x4751b6
cmp esi, dword [edi + 4]
jne 0x4751ac
call fcn.004c000c
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx + 0x2a]
mov dword [esp + 0x38], edx
cmp dword [esp + 0x7c], 0xff
jne 0x4751d6
cmp esi, dword [edi + 4]
jne 0x4751ca
call fcn.004c000c
mov eax, dword [esi + 0x14]
mov cx, word [eax + 0x28]
mov word [esp + 0x36], cx
lea edx, [esp + 0x70]
lea esi, [ebp + 0x5c]
push edx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x1c], esi
call fcn.00477670
mov edi, dword [esp + 0x20]
test edi, edi
mov ebp, dword [esi + 4]
je 0x4751fd
cmp edi, esi
je 0x475202
call fcn.004c000c
mov ebx, dword [esp + 0x24]
cmp ebx, ebp
je 0x475345
test edi, edi
jne 0x475217
call fcn.004c000c
cmp ebx, dword [edi + 4]
jne 0x475221
call fcn.004c000c
cmp ebx, dword [edi + 4]
fld qword [ebx + 0x20]
mov cx, word [ebx + 0x18]
fstp qword [esp + 0x3c]
mov dx, word [ebx + 0x1a]
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x18]
mov word [esp + 0x34], cx
mov ecx, dword [esi + 0x10]
mov word [esp + 0x36], dx
mov dl, byte [esi + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x44], ecx
mov byte [esp + 0x48], dl
jne 0x47525c
call fcn.004c000c
mov edi, dword [esp + 0x10]
push esi
lea eax, [esp + 0x2c]
add edi, 0x50
push eax
mov ecx, edi
call fcn.004775a0
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], ecx
je 0x475283
cmp ebx, edi
je 0x475288
call fcn.004c000c
mov ebp, dword [esp + 0x2c]
cmp ebp, dword [esp + 0x1c]
je 0x475307
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp edx, dword [eax + 4]
jne 0x4752a4
call fcn.004c000c
push esi
mov ecx, edi
call fcn.00477610
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x475307
test ebx, ebx
jne 0x4752bf
call fcn.004c000c
cmp ebp, dword [ebx + 4]
jne 0x4752c9
call fcn.004c000c
mov cx, word [esp + 0x70]
cmp word [ebp + 0x28], cx
jne 0x4752dd
mov edx, dword [esp + 0x72]
cmp dword [ebp + 0x2a], edx
je 0x4752f9
lea ecx, [esp + 0x28]
call fcn.004400c0
add esi, 1
cmp esi, dword [esp + 0x18]
jge 0x475307
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
jmp 0x4752b6
push ebp
push ebx
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00442d90
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00442d90
cmp byte [esp + 0x48], 0
je 0x475345
cmp byte [esp + 0x80], 0
je 0x47535d
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x47535d
cmp dword [esp + 0x38], eax
ja 0x47535d
mov dword [esp + 0x38], eax
jmp 0x47535d
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x475352
mov dword [esp + 0x38], eax
mov cl, byte [esp + 0x80]
mov byte [esp + 0x48], cl
mov eax, dword [esp + 0x7c]
cmp eax, 0xff
je 0x47536d
mov word [esp + 0x36], ax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x48]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x64], ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], edx
mov dx, word [esp + 0x7c]
add ecx, 0x50
mov dword [esp + 0x54], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ebp
mov word [esp + 0x70], dx
call fcn.00478120
mov ax, word [esp + 0x74]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x70]
mov word [esp + 0x50], ax
mov dword [esp + 0x58], ecx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ebp
call fcn.00478030
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x14