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

Disassembly:
sub esp, 0x2ac
mov eax, dword [0x4c3014]
xor eax, esp
mov dword [esp + 0x2a4], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebp, ebp
push 0x38
push ebp
mov dword [esp + 0x40], edi
mov eax, dword [edi + 4]
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x48], 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 + 0x20], eax
lea eax, [esp + 0x210]
push eax
call fcn.0047ed30
movzx eax, byte [ebx + 0x10]
add esp, 0xc
imul ecx, eax, 0x50
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov eax, dword [ecx + eax + 0x38]
mov dword [esp + 0x3c], eax
cmp esi, dword [esp + 0x18]
jae 0x45b47c
movzx edx, word [esp + 0x208]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
test ebp, ebp
jne 0x45b47c
mov ecx, 0x200
test word [esi + 0x12], cx
je 0x45b46d
mov edi, dword [esi + 0xc]
mov dword [esp + 0x20], 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 0x45b469
imul ecx, dword [edi + 0xc], 0x30
lea eax, [esp + 0x240]
mov esi, dword [esp + 0x38]
push 5
mov dword [esp + 0x34], 1
add ecx, dword [edi + 0x14]
lea edi, [esp + 0x60]
mov dword [esp + 0x20], ecx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
and dword [esp + 0x64], ebp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 0x14]
jmp 0x45b3d2
mov ecx, 0x400
test word [esi + 0x12], cx
je 0x45b19f
mov eax, dword [esi + 0xc]
jmp 0x45b1d2
mov ecx, dword [esp + 0x3c]
cmp dword [esi + 8], ecx
jne 0x45b3cf
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x70]
mov dword [esp + 0x74], ecx
mov byte [esp + 0x78], 0x48
mov dword [esp + 0x7c], 1
mov dword [esp + 0x84], esi
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x60], eax
xor eax, eax
mov word [esp + 0x240], ax
mov eax, dword [esp + 0x44]
mov eax, dword [eax + ecx + 0x18]
lea ecx, [esp + 0x5c]
test byte [eax + 0x2a], 0x10
je 0x45b222
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.0045abd6
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
jmp 0x45b23d
push dword [esp + 0x2c4]
push dword [esp + 0x2c4]
call fcn.0045a7c9
pop ecx
pop ecx
mov ebp, eax
mov dword [esp + 0x24], eax
test ebp, ebp
jne 0x45b26f
push dword [esp + 0x2cc]
lea ecx, [esp + 0x60]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
push dword [esp + 0x2cc]
call fcn.0045b090
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x24], ebp
mov di, word [esp + 0x240]
test di, di
je 0x45b3e0
cmp dword [esp + 0x30], 0
je 0x45b2c0
movzx eax, di
shl eax, 4
push eax
lea eax, [esp + 0x24c]
mov word [esp + 0x20c], di
push eax
lea eax, [esp + 0x218]
push eax
call fcn.0047e230
movzx edx, word [esp + 0x214]
add esp, 0xc
and dword [esp + 0x30], 0
jmp 0x45b3c7
mov eax, dword [esp + 0x14]
mov word [esp + 0x278], ax
movzx eax, ax
shl eax, 4
push eax
lea eax, [esp + 0x214]
push eax
lea eax, [esp + 0x288]
push eax
call fcn.0047e230
movzx eax, word [esp + 0x284]
xor edx, edx
add esp, 0xc
mov dword [esp + 0x14], edx
mov word [esp + 0x208], dx
mov dword [esp + 0x34], eax
test eax, eax
je 0x45b3cb
movzx ecx, di
lea edi, [esp + 0x288]
mov dword [esp + 0x14], edi
xor esi, esi
test ecx, ecx
je 0x45b39f
movzx eax, word [edi + 2]
lea ebx, [esp + 0x250]
mov dword [esp + 0x4c], eax
movzx eax, word [edi]
mov dword [esp + 0x50], eax
mov eax, dword [edi - 8]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x54], eax
mov eax, dword [edi - 4]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
mov dx, word [ebx + 2]
mov ecx, edi
call fcn.00416db6
mov dx, word [ebx]
mov ecx, ebp
movzx eax, ax
push eax
call fcn.00416db6
mov ecx, dword [ebx - 4]
or ecx, dword [esp + 0x30]
mov edx, dword [ebx - 8]
or edx, dword [esp + 0x58]
push ecx
push edx
mov edx, eax
lea ecx, [esp + 0x214]
call fcn.00458a9e
movzx ecx, word [esp + 0x24c]
lea ebx, [ebx + 0x10]
add esp, 0xc
inc esi
cmp esi, ecx
jl 0x45b34d
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
add edi, 0x10
sub eax, 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x34], eax
jne 0x45b31b
mov ebx, dword [esp + 0x58]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dx, word [esp + 0x208]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x1c]
add esi, 0x30
mov dword [esp + 0x20], esi
cmp esi, eax
jb 0x45b18f
jmp 0x45b3ee
xor edx, edx
mov dword [esp + 0x14], edx
mov word [esp + 0x208], 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 dword [ebx + 0x24], 0x2000
mov word [ebx + 0x12], ax
mov byte [ebx + 0x11], al
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
test ebp, ebp
jne 0x45b469
movzx eax, dx
lea esi, [esp + 0x21a]
mov dword [esp + 0x2c], eax
cmp edi, eax
jge 0x45b461
mov ax, word [esi - 2]
mov edx, ebx
mov ecx, dword [esp + 0x38]
inc ax
mov word [ebx + 0x14], ax
mov ax, word [esi]
mov word [ebx + 0x16], ax
mov eax, dword [esi - 0xa]
mov dword [ebx], eax
mov eax, dword [esi - 6]
mov dword [ebx + 4], eax
call fcn.00459dae
mov ebp, eax
inc edi
mov eax, dword [esp + 0x2c]
add esi, 0x10
test ebp, ebp
je 0x45b428
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
add esi, 0x30
mov dword [esp + 0x28], esi
cmp esi, eax
jb 0x45b118
mov ecx, dword [esp + 0x2b4]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047c71d
add esp, 0x2ac
ret