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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2120
call fcn.0051dcc0
mov eax, dword [0x572844]
xor eax, esp
mov dword [esp + 0x211c], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [eax + 0x3468]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 0x10]
push 0x800
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1124]
push edi
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edi
call fcn.004b0360
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x4533], 0
je 0x45f1f2
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x40]
cmp dword [eax + 0x84dc], 0
je 0x45f1f2
push 1
push edi
call fcn.004957e0
lea eax, [esp + 0x24]
mov ecx, esi
push eax
lea eax, [esp + 0x2c]
push eax
push edi
call fcn.00463840
test al, al
je 0x45f399
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jae 0x45f399
mov edi, edi
push eax
mov ecx, esi
call fcn.00463020
mov esi, eax
lea edi, [esp + 0x80]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0xac]
cmp eax, 2
je 0x45f24d
cmp eax, 1
jne 0x45f37e
mov esi, dword [esp + 0x10]
push 0x800
mov eax, dword [esi + 0x7e60]
mov ecx, dword [esi + 0x7e64]
mov dword [esp + 0xbc], eax
lea eax, [esp + 0x124]
push eax
lea eax, [esp + 0x88]
mov dword [esp + 0xc4], ecx
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x40]
call fcn.00461f80
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x120]
push edi
push eax
call fcn.004b02f0
test eax, eax
jne 0x45f382
mov edi, dword [esp + 0xc]
mov byte [esp + 0xb], al
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x7138], 2
je 0x45f30e
cmp byte [eax + 0x715f], 0
jne 0x45f2cc
cmp byte [eax + 0x7160], 0
je 0x45f313
cmp dword [eax + 0x84e8], 1
lea ecx, [esi + 0x4480]
jne 0x45f4e7
call fcn.004b1770
lea ecx, [esp + 0x98]
mov dword [esp + 0x1c], eax
mov esi, edx
call fcn.004b1770
cmp edx, esi
jg 0x45f4d9
jl 0x45f30a
cmp eax, dword [esp + 0x1c]
ja 0x45f4d9
mov esi, dword [esp + 0x10]
mov byte [esp + 0xb], 1
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x7138], 4
jne 0x45f52a
mov ecx, esi
call fcn.00469cf0
test al, al
jne 0x45f525
push 7
lea eax, [esi + 0x4480]
push eax
push dword [esi + 0x44a4]
push dword [esi + 0x44a0]
push 0
push dword [esp + 0x94]
push dword [edi + 0x40]
call fcn.004b3950
sub eax, 1
je 0x45f525
sub eax, 5
jne 0x45f52a
push 0xff
mov ecx, 0x5b68fc
call fcn.0047aed0
jmp 0x45f52a
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x24]
jb 0x45f220
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [edx + 0x7e60]
mov ecx, dword [edx + 0x7e64]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], ecx
xor cl, cl
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [eax + 0x40]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x30], edi
mov byte [esp + 0xb], cl
cmp byte [eax + 0x73c2], cl
je 0x45f486
mov ecx, dword [esp + 0x20]
call fcn.004b06a0
mov ecx, dword [esp + 0x20]
call fcn.004b04b0
test eax, eax
je 0x45f47e
push 5
push edi
push eax
call fcn.00488c80
test al, al
jne 0x45f763
mov ecx, dword [esp + 0x20]
call fcn.004b04b0
test eax, eax
jne 0x45f460
mov cl, byte [esp + 0xb]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x40]
cmp byte [eax + 0x73c2], 0
je 0x45f4ab
cmp byte [edx + 0x4533], 0
jne 0x45f4ab
mov dword [esp + 0x5c], 5
test cl, cl
je 0x45f4b3
mov dword [esp + 0x5c], 4
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00463030
mov eax, dword [esp + 0x5c]
pop edi
pop esi
mov ecx, dword [esp + 0x211c]
xor ecx, esp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esp + 0x10]
mov byte [esp + 0xb], 0
jmp 0x45f313
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dword [esp + 0x9c], ecx
jb 0x45f30e
mov eax, dword [esp + 0x98]
ja 0x45f50a
cmp eax, edx
jb 0x45f30e
cmp eax, edx
jne 0x45f51b
cmp dword [esp + 0x9c], ecx
je 0x45f30e
mov byte [esp + 0xb], 0
jmp 0x45f313
mov byte [esp + 0xb], 1
mov eax, dword [edi + 0x40]
cmp dword [eax + 0x84dc], 0
je 0x45f701
mov ecx, esi
call fcn.00469cf0
test al, al
je 0x45f553
cmp byte [esp + 0xcc], 0
jne 0x45f701
mov al, byte [esp + 0xb]
test al, al
je 0x45f642
cmp dword [esp + 0xac], 1
je 0x45f5dc
mov esi, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0xac], 1
mov dword [esp + 0xc4], 0
cmp dword [esi + 0x14], edi
jbe 0x45f5d8
lea ebx, [ebx]
push edi
mov ecx, esi
call fcn.00463020
cmp dword [eax + 0x2c], 4
jne 0x45f5ce
push edi
mov ecx, esi
call fcn.00463020
mov ecx, dword [esp + 0x14]
inc ecx
cmp dword [eax + 0x30], ecx
jne 0x45f5ce
push edi
mov ecx, esi
call fcn.00463020
push edi
mov ecx, esi
mov dword [eax + 0x44], 0
call fcn.00463020
mov dword [eax + 0x30], 0
inc edi
cmp edi, dword [esi + 0x14]
jb 0x45f590
mov al, byte [esp + 0xb]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0xc4]
cmp ecx, dword [edi + 0x58]
jbe 0x45f5eb
mov dword [edi + 0x58], ecx
lea esi, [esp + 0x80]
mov ecx, 0x14
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0xfc], 4
lea ecx, [esp + 0x1120]
mov dword [esp + 0xd0], ecx
test al, al
je 0x45f6e2
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0x104], 0
call fcn.00463030
jmp 0x45f714
mov ecx, dword [esp + 0xc4]
mov eax, dword [edi + 0x40]
inc ecx
mov dword [esp + 0xc4], ecx
mov eax, dword [eax + 0x84dc]
cmp eax, 1
jbe 0x45f6d9
cmp ecx, eax
jb 0x45f6d9
mov esi, dword [esp + 0x18]
lea eax, [ecx - 1]
xor edi, edi
mov dword [esp + 0xc4], eax
cmp dword [esi + 0x14], edi
jbe 0x45f5d4
lea esp, [esp]
push edi
mov ecx, esi
call fcn.00463020
cmp dword [eax + 0x2c], 4
jne 0x45f6ce
push edi
mov ecx, esi
call fcn.00463020
mov ecx, dword [esp + 0x14]
inc ecx
cmp dword [eax + 0x30], ecx
jne 0x45f6ce
push edi
mov ecx, esi
call fcn.00463020
push edi
mov ecx, esi
cmp dword [eax + 0x44], 1
jbe 0x45f6bb
call fcn.00463020
dec dword [eax + 0x44]
jmp 0x45f6ce
call fcn.00463020
mov dword [eax + 0x2c], 5
mov eax, dword [esp + 0x2c]
mov byte [eax], 1
inc edi
cmp edi, dword [esi + 0x14]
jb 0x45f680
jmp 0x45f5d4
mov al, byte [esp + 0xb]
jmp 0x45f5dc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x100], eax
lea eax, [esp + 0xd0]
push eax
call fcn.00463030
jmp 0x45f714
xor eax, eax
cmp byte [esp + 0xb], al
setne al
add eax, 3
mov dword [esp + 0xac], eax
push dword [esp + 0x14]
mov ecx, 0x14
lea esi, [esp + 0x84]
lea edi, [esp + 0xd4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
call fcn.00463020
mov edi, eax
lea esi, [esp + 0xd0]
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x2124]
mov eax, dword [esp + 0xac]
pop edi
pop esi
xor ecx, esp
call fcn.0051dca8
mov esp, ebp
pop ebp
ret 0x10
mov cl, 1
jmp 0x45f482