Function at 0x460591
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.0049ee30
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 0x46096b
movzx edx, word [esp + 0x78]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x46096b
mov ecx, 0x200
test word [esi + 0xc], cx
je 0x46095c
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 0x460958
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 0x4608c0
mov ecx, 0x400
test word [esi + 0xc], cx
je 0x46068f
mov eax, dword [esi + 0x1c]
jmp 0x4606d1
mov ecx, dword [esp + 0x38]
cmp dword [esi + 0x14], ecx
jne 0x4608bd
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 0x460721
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.00460244
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
jmp 0x46073c
push dword [esp + 0x2c4]
push dword [esp + 0x2c4]
call fcn.0045f8f4
pop ecx
pop ecx
mov ebp, eax
mov dword [esp + 0x24], eax
test ebp, ebp
jne 0x46076e
push dword [esp + 0x2cc]
lea ecx, [esp + 0x60]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.00460591
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
mov di, word [esp + 0xb0]
test di, di
je 0x4608ce
cmp dword [esp + 0x2c], 0
je 0x4607b4
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.0049fa90
add esp, 0xc
and dword [esp + 0x2c], 0
jmp 0x4608b0
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.0049fa90
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 0x4608b9
movzx ecx, di
lea edi, [esp + 0xf8]
mov dword [esp + 0x14], edi
xor esi, esi
test ecx, ecx
je 0x460890
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.00415fc2
mov dx, word [ebx]
mov ecx, ebp
movzx eax, ax
push eax
call fcn.00415fc2
mov ecx, dword [ebx - 4]
or ecx, dword [esp + 0x58]
mov edx, dword [ebx - 8]
or edx, dword [esp + 0x54]
push ecx
push edx
mov edx, eax
lea ecx, [esp + 0x84]
call fcn.0045d926
movzx ecx, word [esp + 0xbc]
lea ebx, [ebx + 0x10]
add esp, 0xc
inc esi
cmp esi, ecx
jl 0x46083e
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 0x46080c
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
movzx edx, 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 0x46067f
jmp 0x4608d9
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 0x460958
movzx esi, dx
lea edi, [esp + 0x8a]
cmp eax, esi
jge 0x460950
mov ax, word [edi - 2]
mov edx, ebx
mov ecx, dword [esp + 0x34]
inc ax
mov word [ebx + 0x14], ax
mov ax, word [edi]
mov word [ebx + 0x16], ax
mov eax, dword [edi - 0xa]
mov dword [ebx], eax
mov eax, dword [edi - 6]
mov dword [ebx + 4], eax
call fcn.0045ecfe
mov ebp, eax
add edi, 0x10
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x460913
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 0x460608
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x2ac
ret