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

Disassembly:
push 0xffffffffffffffff
push 0x5644c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x5a06cc]
mov dl, byte [0x5a06d2]
push ebx
push ebp
push esi
mov esi, ecx
mov cx, word [0x5a06d0]
push edi
mov word [esp + 0x34], cx
xor edi, edi
push 6
push 0x59d09c
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], esi
mov dword [esp + 0x38], eax
mov byte [esp + 0x3e], dl
mov dword [esp + 0x34], edi
call fcn.005318a0
push ecx
mov dword [esp + 0x148], edi
mov ecx, esp
mov dword [esp + 0x28], esp
push 6
push 0x59c054
call fcn.005318a0
lea ecx, [esi + 0x74]
mov dword [esp + 0x18], ecx
call fcn.005319b0
mov cl, byte [esp + 0x14c]
mov al, byte [esi + 0x73]
cmp cl, 1
mov byte [esp + 0x31], al
setne cl
add ecx, 6
lea edx, [esp + 0x3c]
push 2
lea eax, [esp + 0x34]
mov byte [esp + 0x38], cl
push edx
push eax
lea ecx, [esi + 0x78]
call fcn.0043cb50
cmp ax, di
mov dword [esp + 0x20], eax
jne 0x45af38
push edi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x59b920
call fcn.005318a0
push ecx
mov byte [esp + 0x154], 1
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x59b918
call fcn.005318a0
mov ecx, 0x5c6628
mov byte [esp + 0x154], 0
call fcn.00533b90
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.00531940
or ax, 0xffff
jmp 0x45b4e4
mov esi, dword [esp + 0x150]
mov edi, dword [esi + 8]
mov ebp, dword [esi + 4]
cmp edi, edi
mov ebx, edi
je 0x45af69
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push ebx
call fcn.00531810
mov ecx, ebp
call fcn.005319b0
add ebx, 4
add ebp, 4
cmp ebx, edi
jne 0x45af4b
mov ebx, dword [esi + 8]
mov edi, ebp
cmp ebp, ebx
je 0x45af80
mov ecx, edi
call fcn.00531940
add edi, 4
cmp edi, ebx
jne 0x45af72
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 8], ebp
mov al, byte [ecx + 0x73]
sub eax, 0xf5
je 0x45b393
sub eax, 2
jne 0x45b4ae
cmp byte [esp + 0x14c], 1
jne 0x45b1b8
mov ecx, dword [esp + 0x14]
push 2
push 5
call fcn.00531ad0
mov ecx, 3
cmp word [esp + 0x20], cx
mov ebx, ecx
mov dword [esp + 0x18], ebx
jle 0x45b4ae
cmp bx, 0xc
jg 0x45b4ae
movsx eax, bx
mov al, byte [esp + eax + 0x3c]
test al, al
mov byte [esp + 0x14], al
je 0x45b1a3
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], edi
jmp 0x45b000
mov al, byte [esp + 0x14]
shr al, cl
test al, 1
je 0x45b187
movsx eax, bx
lea edi, [edi + eax*8 - 0x18]
mov ax, word [edi*2 + 0x575560]
test ax, ax
je 0x45b187
xor edx, edx
mov ebp, 4
mov dl, ah
lea ecx, [esp + 0x10]
push edx
push ebp
call fcn.00531ad0
mov al, byte [edi*2 + 0x575560]
mov byte [esp + 0x28], al
mov ecx, dword [esp + 0x28]
push ecx
push 5
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov edi, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x45b10b
mov ecx, esi
call fcn.0040a310
cmp eax, 1
jbe 0x45b07c
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x45b081
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x24], eax
jns 0x45b092
xor eax, eax
shl eax, 2
push eax
call fcn.00556a96
mov ecx, dword [esi + 4]
add esp, 4
mov ebp, eax
push ebp
push edi
push ecx
mov ecx, esi
call fcn.004052e0
lea edx, [esp + 0x10]
mov ebx, eax
push edx
push 1
push ebx
mov ecx, esi
call fcn.00405320
mov eax, dword [esi + 8]
add ebx, 4
push ebx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
push ecx
push edx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov eax, dword [esp + 0x28]
add esp, 4
lea ecx, [ebp + eax*4]
mov dword [esi + 0xc], ecx
mov ecx, esi
call fcn.0040a310
mov ebx, dword [esp + 0x18]
lea edx, [ebp + eax*4 + 4]
mov dword [esi + 8], edx
mov dword [esi + 4], ebp
jmp 0x45b187
mov eax, edi
sub eax, edi
sar eax, 2
cmp eax, 1
jae 0x45b157
lea ecx, [edi + 4]
push ecx
push edi
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x45b184
push edi
lea edx, [edi - 4]
push edi
push edx
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea eax, [esp + 0x1c]
lea ecx, [edi + 4]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebp
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
inc ecx
inc edi
cmp cx, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], edi
jl 0x45affc
inc ebx
cmp bx, word [esp + 0x20]
mov dword [esp + 0x18], ebx
jl 0x45afd1
jmp 0x45b4ae
mov ecx, dword [esp + 0x14]
push 3
push 5
call fcn.00531ad0
movsx edx, word [esp + 0x20]
mov ebp, 7
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], ebp
mov edx, dword [esp + 0x24]
movsx eax, bp
lea ecx, [eax + 1]
cmp edx, ecx
jl 0x45b4ae
mov cl, byte [esp + eax + 0x3c]
movsx eax, word [esp + 0x18]
mov byte [esp + 0x14], cl
lea eax, [eax + eax*2]
lea edx, [esp + eax + 0x42]
mov al, byte [edx + eax*4]
test al, al
jne 0x45b214
test cl, cl
je 0x45b374
mov ebx, 4
push eax
push ebx
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x45b2f8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45b266
sub eax, ecx
sar eax, 2
cmp eax, 1
jbe 0x45b266
mov ecx, esi
call fcn.0040a310
mov ebx, eax
jmp 0x45b26b
mov ebx, 1
mov ecx, esi
call fcn.0040a310
add eax, ebx
mov dword [esp + 0x28], eax
jns 0x45b27c
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00556a96
add esp, 4
mov ebx, eax
mov eax, dword [esi + 4]
mov ecx, esi
push ebx
push edi
push eax
call fcn.004052e0
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
push 1
push ebp
mov ecx, esi
call fcn.00405320
mov edx, dword [esi + 8]
add ebp, 4
push ebp
push edx
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.00404c00
mov eax, dword [esi + 4]
push eax
call fcn.00556360
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, esi
lea eax, [ebx + edx*4]
mov dword [esi + 0xc], eax
call fcn.0040a310
mov ebp, dword [esp + 0x1c]
lea ecx, [ebx + eax*4 + 4]
mov dword [esi + 8], ecx
mov dword [esi + 4], ebx
jmp 0x45b374
mov edx, eax
sub edx, edi
sar edx, 2
cmp edx, 1
jae 0x45b344
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004052e0
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00405320
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
push edi
call fcn.00405390
add esp, 0xc
jmp 0x45b371
push eax
push eax
add eax, 0xfffffffc
mov ecx, esi
push eax
call fcn.004052e0
mov eax, dword [esi + 8]
push eax
add eax, 0xfffffffc
push eax
push edi
call fcn.004053d0
lea edx, [esp + 0x1c]
lea eax, [edi + 4]
push edx
push eax
push edi
call fcn.00405390
add esp, 0x18
add dword [esi + 8], ebx
mov edx, dword [esp + 0x18]
add ebp, 0xf
inc edx
cmp bp, 0x43
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebp
jl 0x45b1df
jmp 0x45b4ae
cmp byte [esp + 0x14c], 1
jne 0x45b449
mov ecx, dword [esp + 0x14]
push 2
push 5
call fcn.00531ad0
mov ecx, 3
cmp word [esp + 0x20], cx
mov dword [esp + 0x18], ecx
jle 0x45b4ae
cmp cx, 0xc
jg 0x45b4ae
movsx ebp, cx
mov al, byte [esp + ebp + 0x3c]
test al, al
mov byte [esp + 0x14], al
je 0x45b437
xor ebx, ebx
xor edi, edi
mov dl, al
mov cl, bl
shr dl, cl
test dl, 1
je 0x45b42b
mov cl, byte [edi + ebp*8 + 0x5754f8]
test cl, cl
je 0x45b42b
push 0
push 4
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov al, byte [edi + ebp*8 + 0x5754f8]
lea ecx, [esp + 0x10]
push eax
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00404e90
mov al, byte [esp + 0x14]
inc ebx
inc edi
cmp bx, 8
jl 0x45b3df
mov ecx, dword [esp + 0x18]
inc ecx
cmp cx, word [esp + 0x20]
mov dword [esp + 0x18], ecx
jl 0x45b3c2
jmp 0x45b4ae
mov ecx, dword [esp + 0x14]
push 3
push 5
call fcn.00531ad0
movsx ebx, word [esp + 0x20]
mov edi, 6
movsx eax, di
lea edx, [eax + 1]
cmp ebx, edx
jl 0x45b4ae
mov al, byte [esp + eax + 0x3c]
test al, al
mov byte [esp + 0x14], al
je 0x45b4a5
push 0
push 4
lea ecx, [esp + 0x18]
call fcn.00531ad0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 5
call fcn.00531ad0
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
mov ecx, esi
call fcn.00404e90
add edi, 0xc
cmp di, 0x36
jl 0x45b460
test esi, esi
je 0x45b4cb
mov eax, dword [esi + 4]
test eax, eax
jne 0x45b4bf
mov dword [esp + 0x2c], eax
jmp 0x45b4cb
mov esi, dword [esi + 8]
sub esi, eax
sar esi, 2
mov dword [esp + 0x2c], esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x144], 0xffffffff
call fcn.00531940
mov ax, word [esp + 0x2c]
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x138
ret 8