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

Disassembly:
sub esp, 0x2ac
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push 0x38
push ebp
mov dword [esp + 0x3c], edi
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], ebx
mov esi, dword [eax + 0x14]
imul eax, dword [eax + 0xc], 0x30
mov dword [esp + 0x30], esi
add eax, esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x80]
push eax
call fcn.00478810
movzx eax, byte [ebx + 0x10]
add esp, 0xc
imul ecx, eax, 0x48
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov eax, dword [ecx + eax + 0x34]
mov dword [esp + 0x38], eax
cmp esi, dword [esp + 0x1c]
jae 0x459cfc
movzx edx, word [esp + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x459cfc
mov ecx, 0x200
test word [esi + 0xc], cx
je 0x459ced
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x18], edi
mov ecx, dword [edi + 0x198]
mov eax, dword [edi + 0x19c]
and ecx, dword [ebx + 8]
and eax, dword [ebx + 0xc]
or ecx, eax
je 0x459ce9
imul ecx, dword [edi + 0xc], 0x30
lea eax, [esp + 0xb0]
mov esi, dword [esp + 0x34]
push 7
mov dword [esp + 0x30], 1
add ecx, dword [edi + 0x14]
lea edi, [esp + 0x60]
mov dword [esp + 0x24], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x18]
and dword [esp + 0x64], ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esi + 0x14]
jmp 0x459c51
mov ecx, 0x400
test word [esi + 0xc], cx
je 0x459a18
mov eax, dword [esi + 0x1c]
jmp 0x459a5a
mov ecx, dword [esp + 0x38]
cmp dword [esi + 0x14], ecx
jne 0x459c4e
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [esp + 0x120], eax
lea eax, [esp + 0x120]
mov dword [esp + 0x124], ecx
mov byte [esp + 0x128], 0x2c
mov dword [esp + 0x12c], 1
mov dword [esp + 0x134], esi
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0xb0], ax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ecx + 0x18]
lea ecx, [esp + 0x5c]
cmp dword [eax + 0x38], 0
je 0x459aaa
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.004595bd
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
jmp 0x459ac5
push dword [esp + 0x2c4]
push dword [esp + 0x2c4]
call fcn.00458c53
pop ecx
pop ecx
mov ebp, eax
mov dword [esp + 0x24], eax
test ebp, ebp
jne 0x459af7
push dword [esp + 0x2cc]
lea ecx, [esp + 0x60]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.0045991a
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
mov di, word [esp + 0xb0]
test di, di
je 0x459c5f
cmp dword [esp + 0x2c], 0
je 0x459b45
movzx eax, di
shl eax, 4
push eax
lea eax, [esp + 0xbc]
mov word [esp + 0x7c], di
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004793b0
movzx edx, word [esp + 0x84]
add esp, 0xc
and dword [esp + 0x2c], 0
jmp 0x459c46
mov eax, dword [esp + 0x14]
mov word [esp + 0xe8], ax
movzx eax, ax
shl eax, 4
push eax
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.004793b0
movzx eax, word [esp + 0xf4]
xor edx, edx
add esp, 0xc
mov dword [esp + 0x14], edx
mov word [esp + 0x78], dx
mov dword [esp + 0x30], eax
test eax, eax
je 0x459c4a
movzx ecx, di
lea edi, [esp + 0xf8]
mov dword [esp + 0x14], edi
xor esi, esi
test ecx, ecx
je 0x459c21
movzx eax, word [edi + 2]
lea ebx, [esp + 0xc0]
mov dword [esp + 0x48], eax
movzx eax, word [edi]
mov dword [esp + 0x4c], eax
mov eax, dword [edi - 8]
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov eax, dword [edi - 4]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov dx, word [ebx + 2]
mov ecx, edi
call fcn.0040e75f
mov dx, word [ebx]
mov ecx, ebp
movzx eax, ax
push eax
call fcn.0040e75f
mov ecx, dword [ebx - 4]
or ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
or edx, dword [ebx - 8]
push ecx
push edx
mov edx, eax
lea ecx, [esp + 0x84]
call fcn.00456bd3
movzx ecx, word [esp + 0xbc]
lea ebx, [ebx + 0x10]
add esp, 0xc
inc esi
cmp esi, ecx
jl 0x459bcf
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add edi, 0x10
sub eax, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
jne 0x459b9d
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dx, word [esp + 0x78]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x20]
add esi, 0x30
mov dword [esp + 0x18], esi
cmp esi, eax
jb 0x459a08
jmp 0x459c6a
xor edx, edx
mov dword [esp + 0x14], edx
mov word [esp + 0x78], dx
mov esi, dword [esp + 0x28]
lea edi, [ebx + 0x18]
xor eax, eax
inc eax
mov word [ebx + 0x28], ax
mov eax, dword [ebx + 0x30]
mov dword [eax], esi
xor eax, eax
mov word [ebx + 0x12], ax
mov byte [ebx + 0x11], al
mov dword [ebx + 0x24], 0x2000
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [esp + 0x18], eax
test ebp, ebp
jne 0x459ce9
movzx esi, dx
lea edi, [esp + 0x8a]
cmp eax, esi
jge 0x459ce1
mov ax, word [edi - 2]
mov edx, ebx
mov ecx, dword [edi - 6]
inc ax
mov word [ebx + 0x14], ax
mov ax, word [edi]
mov word [ebx + 0x16], ax
mov eax, dword [edi - 0xa]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx], eax
call fcn.00458062
mov ebp, eax
add edi, 0x10
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x459ca4
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esi, 0x30
mov dword [esp + 0x28], esi
cmp esi, eax
jb 0x459991
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2ac
ret