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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov eax, dword [0x4d897c]
xor eax, esp
mov dword [esp + 0xc0], eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [esp + 0x54], edi
mov dword [eax + 0xc], edx
call fcn.0041d210
mov ebx, dword [edi + 0x154]
mov eax, dword [edi + 0x158]
mov edx, dword [edi + 0x15c]
mov ecx, dword [edi + 0x160]
add ebx, dword [edi + 0x4b0]
add eax, dword [edi + 0x4b4]
sub edx, dword [edi + 0x4b8]
sub ecx, dword [edi + 0x4bc]
xor esi, esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
cmp dword [edi + 0x4a8], esi
jne 0x45af04
push esi
push esi
mov esi, dword [ebp + 0xc]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x1ac]
mov ecx, edi
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.00494bb0
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [edi + 0x4c8]
cmp ecx, esi
je 0x45af2c
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x45af2c
mov ecx, dword [edi + 0x4c8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
sub dword [ebp + 0x10], eax
mov ecx, dword [edi + 0x4cc]
cmp ecx, esi
je 0x45af54
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x45af54
mov ecx, dword [edi + 0x4cc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x60]
call eax
sub dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
mov ecx, dword [edi + 0x4cc]
mov dword [esp + 0x64], eax
cmp ecx, esi
je 0x45af8c
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x45af8c
mov ecx, dword [edi + 0x4cc]
mov eax, dword [ecx + 0x4a4]
sub eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
mov dword [esp + 0x64], eax
mov ecx, dword [edi + 0x4c8]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
test ecx, ecx
je 0x45afc6
mov eax, dword [ecx]
mov edx, dword [eax + 0xc8]
call edx
test al, al
je 0x45afc6
mov eax, dword [edi + 0x4c8]
sub ebx, dword [eax + 0x4a8]
mov dword [esp + 0x2c], ebx
mov ecx, dword [edi + 0x4cc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x45aff9
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x45aff9
mov ecx, dword [edi + 0x4cc]
sub ebx, dword [ecx + 0x4a8]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x13], 1
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x14], esi
cmp dword [edi + 0x4a8], esi
jle 0x45b530
mov edx, dword [edi + 0x4a4]
mov eax, dword [esp + 0x14]
mov ebx, dword [edx + eax*4]
mov edx, dword [ebx]
mov eax, dword [edx + 0xc8]
mov ecx, ebx
call eax
test al, al
je 0x45b51b
mov edx, dword [ebx]
mov eax, dword [edx + 0xf4]
mov ecx, ebx
call eax
test al, al
je 0x45b05d
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0x1a8]
push eax
mov ecx, edi
call edx
jmp 0x45b51b
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x78], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x74], ecx
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
sub esi, dword [esp + 0x74]
mov edx, dword [ebx]
mov edx, dword [edx + 0x114]
push eax
mov dword [esp + 0x8c], eax
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, ebx
call edx
cmp dword [esp + 0x20], 0
jne 0x45b0c5
mov dword [esp + 0x20], esi
cmp dword [esp + 0x24], 0
jne 0x45b0d7
mov eax, dword [esp + 0x88]
mov dword [esp + 0x24], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
cmp dword [esp + 0x20], eax
jge 0x45b0f3
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
mov dword [esp + 0x20], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
cmp dword [esp + 0x20], eax
jle 0x45b10f
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
mov dword [esp + 0x20], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
mov ecx, ebx
call eax
cmp dword [esp + 0x24], eax
jge 0x45b12b
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
mov ecx, ebx
call eax
mov dword [esp + 0x24], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
mov ecx, ebx
call eax
cmp dword [esp + 0x24], eax
jle 0x45b14d
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
mov ecx, ebx
call eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc4]
add eax, dword [esp + 0xbc]
add eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
cmp byte [esp + 0x13], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], eax
je 0x45b332
mov eax, dword [esp + 0x14]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x40], eax
cmp eax, dword [edi + 0x4a8]
jge 0x45b332
mov edx, dword [edi + 0x4a4]
mov eax, dword [esp + 0x40]
mov esi, dword [edx + eax*4]
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x45b30f
mov edx, dword [esi]
mov eax, dword [edx + 0xf4]
mov ecx, esi
call eax
test al, al
jne 0x45b30f
mov edx, dword [esi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x9c]
push eax
mov ecx, esi
call edx
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0x4c0]
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0xa4]
cdq
sub edi, dword [esp + 0x9c]
sub eax, edx
sub edi, dword [esp + 0x28]
mov edx, dword [esi]
sar eax, 1
neg eax
add edi, eax
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
cmp edi, eax
jge 0x45b21d
mov edx, dword [esi]
mov eax, dword [edx + 0x68]
mov ecx, esi
call eax
mov edi, eax
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
cmp edi, eax
jle 0x45b235
mov edx, dword [esi]
mov eax, dword [edx + 0x70]
mov ecx, esi
call eax
mov edi, eax
mov edx, dword [esi]
mov edx, dword [edx + 0x114]
mov eax, 0x270f
push eax
push edi
lea eax, [esp + 0x40]
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jge 0x45b269
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
mov ecx, esi
call edx
cmp dword [esp + 0x38], eax
jle 0x45b285
mov eax, dword [esi]
mov edx, dword [eax + 0x70]
mov ecx, esi
call edx
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
cmp dword [esp + 0x3c], eax
jge 0x45b2a1
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
mov ecx, esi
call edx
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x3c]
cmp ecx, eax
jle 0x45b2c7
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
mov ecx, esi
call edx
mov ecx, eax
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x38]
add edx, dword [esp + 0xa4]
mov eax, dword [esp + 0x5c]
add edx, dword [esp + 0x9c]
add eax, edx
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x64]
jge 0x45b326
mov eax, dword [esp + 0xa0]
add eax, dword [esp + 0xa8]
add eax, ecx
cmp dword [esp + 0x30], eax
jg 0x45b303
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [edi + 0x4a8]
jl 0x45b196
jmp 0x45b332
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x48], ecx
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0xac]
push eax
mov ecx, ebx
call edx
mov eax, dword [edi + 0x4c0]
mov ecx, dword [esp + 0xac]
cdq
sub eax, edx
mov edx, dword [esp + 0xb4]
sar eax, 1
lea esi, [eax + ecx]
add esi, dword [esp + 0x28]
lea ecx, [eax + edx]
sub dword [esp + 0x54], ecx
cmp byte [esp + 0x13], 0
je 0x45b373
sub esi, eax
mov edx, dword [esp + 0x48]
cmp dword [esp + 0x14], edx
jne 0x45b381
add dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0x30]
add edx, eax
add ecx, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], ecx
sub ecx, edx
sub eax, esi
push ecx
mov dword [esp + 0x54], edx
mov edx, dword [ebx]
mov edx, dword [edx + 0x114]
push eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x74], ecx
push eax
mov ecx, ebx
mov byte [esp + 0x1f], 0
call edx
cmp dword [esp + 0x18], 0
jne 0x45b3d3
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
cmp dword [esp + 0x1c], 0
jne 0x45b3e2
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
cmp dword [esp + 0x18], eax
jge 0x45b3fe
mov edx, dword [ebx]
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
mov dword [esp + 0x18], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
cmp dword [esp + 0x18], eax
jle 0x45b41a
mov edx, dword [ebx]
mov eax, dword [edx + 0x70]
mov ecx, ebx
call eax
mov dword [esp + 0x18], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
mov ecx, ebx
call eax
cmp dword [esp + 0x1c], eax
jge 0x45b436
mov edx, dword [ebx]
mov eax, dword [edx + 0x78]
mov ecx, ebx
call eax
mov dword [esp + 0x1c], eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jle 0x45b45c
mov edx, dword [ebx]
mov eax, dword [edx + 0x80]
mov ecx, ebx
call eax
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x18]
sub esp, 0x10
add eax, esi
cdq
sub eax, edx
mov esi, eax
mov eax, dword [esp + 0x68]
sub eax, ecx
add eax, dword [esp + 0x60]
sar esi, 1
cdq
sub eax, edx
mov edx, dword [esp + 0x28]
sar eax, 1
add ecx, eax
mov dword [esp + 0xa8], ecx
mov ecx, esp
add edx, esi
mov dword [ecx], esi
mov dword [ecx + 4], eax
mov dword [esp + 0xa4], edx
mov eax, dword [esp + 0xa4]
mov edx, dword [ebx]
mov edx, dword [edx + 0x34]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xa8]
mov dword [ecx + 0xc], eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x14], eax
jne 0x45b4e8
mov edx, dword [edi + 0x4c0]
add edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
add dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 0
mov byte [esp + 0x13], 1
jmp 0x45b4f0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x58]
mov ecx, dword [edi + 0x4c8]
sub esi, dword [ebp + 0xc]
test ecx, ecx
je 0x45b51b
mov edx, dword [ecx]
mov eax, dword [edx + 0xc8]
call eax
test al, al
je 0x45b51b
mov ecx, dword [edi + 0x4c8]
add esi, dword [ecx + 0x4a8]
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [edi + 0x4a8]
jl 0x45b016
mov ecx, dword [ebp + 8]
mov edx, dword [edi]
mov edx, dword [edx + 0x1ac]
push esi
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0xc], ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00494bb0
mov esp, ebp
pop ebp
ret 0x10