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

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [0x629148]
push esi
push edi
mov eax, dword [ebp + 0x3dcc]
cmp eax, dword [ebp + 0x3dc8]
je 0x45b820
call fcn.0045b440
mov eax, dword [ebp + 0x3dd0]
mov edx, 4
mov dword [esp + 0x14], eax
mov ecx, ebp
mov eax, dword [ebp + 0x3dc8]
mov dword [esp + 0x18], eax
mov dword [ebp + 0x3dd0], eax
mov dword [ebp + 0xac], 0
call fcn.004582c0
xor ecx, ecx
mov dword [esp + 0x10], ecx
cmp dword [ebp + 0x47bc], ecx
je 0x45b92b
mov eax, dword [ebp + 0x47c4]
mov edi, 2
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x1c], eax
lea ebx, [eax + 0x64]
mov esi, ebx
nop dword [eax]
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x45b89f
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0046b9b0
mov dword [esi], 0
add esi, 0xc
sub edi, 1
jne 0x45b880
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x30], edi
je 0x45b916
push str.Background
xor edx, edx
call fcn.00459130
mov edi, eax
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x45b916
cmp eax, 1
jne 0x45b8e1
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x45b8e1
cmp dword [eax + 0x20], 0
je 0x45b916
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
cmp esi, ecx
jne 0x45b90c
inc esi
test ecx, ecx
je 0x45b8fa
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x45b8ff
mov eax, 8
cmp eax, esi
mov ecx, ebx
cmovg esi, eax
push esi
call fcn.0046b9b0
mov ecx, dword [ebx]
mov eax, dword [ebx + 8]
mov dword [eax + ecx*4], edi
inc dword [ebx]
mov ecx, dword [esp + 0x10]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebp + 0x47bc]
jne 0x45b862
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x45b93a
call fcn.0045b0a0
mov eax, dword [ebp + 0x4934]
test eax, eax
je 0x45b95f
test dword [eax + 0xc], 0x2000
jne 0x45b95f
mov edi, dword [eax + 0x300]
mov ebx, dword [ebp + 0x493c]
mov dword [esp + 0x1c], edi
jmp 0x45b973
xor edi, edi
mov dword [esp + 0x1c], edi
test eax, eax
je 0x45b971
mov ebx, dword [ebp + 0x493c]
jmp 0x45b973
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x20], ebx
cmp dword [ebp + 0x3e00], esi
je 0x45b9d2
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + 0x3e08]
mov ecx, dword [eax + esi*4]
cmp byte [ecx + 0xaa], 0
je 0x45b9c9
cmp byte [ecx + 0xb1], 0
jne 0x45b9c9
mov edx, dword [ecx + 0xc]
test edx, 0x1000000
jne 0x45b9c9
cmp ecx, edi
je 0x45b9c9
cmp ecx, ebx
je 0x45b9c9
shr edx, 0x19
and edx, 1
call fcn.0045ac70
inc esi
cmp esi, dword [ebp + 0x3e00]
jne 0x45b990
xor esi, esi
mov ecx, dword [esp + esi*4 + 0x1c]
test ecx, ecx
je 0x45b9fc
cmp byte [ecx + 0xaa], 0
je 0x45b9fc
cmp byte [ecx + 0xb1], 0
jne 0x45b9fc
mov edx, dword [ecx + 0xc]
shr edx, 0x19
and edx, 1
call fcn.0045ac70
inc esi
cmp esi, 2
jl 0x45b9d4
cmp byte [ebp + 0x60], 0
je 0x45ba3c
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x18]
je 0x45ba3c
mov ecx, dword [ebp + 0x4960]
cmp ecx, 0xffffffff
je 0x45ba3c
push dword [ebp + 0xdc4]
movss xmm0, dword [ebp + 0x3854]
push dword [ebp + 0xdc0]
sub esp, 8
call fcn.00456f00
add esp, 0x10
xor ecx, ecx
mov dword [ebp + 0xa8], 0
mov dword [ebp + 0xa4], 0
mov dword [esp + 0x18], ecx
cmp dword [ebp + 0x47bc], ecx
jle 0x45bc26
mov eax, dword [ebp + 0x47c4]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x64]
mov ebx, dword [edi + 0x70]
mov eax, dword [edi + 0x68]
add ebx, ecx
mov dword [esp + 0x1c], ecx
cmp ebx, eax
jle 0x45baa7
test eax, eax
je 0x45ba8e
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, dword [edi + 0x68]
jmp 0x45ba93
mov ecx, 8
cmp ecx, ebx
mov eax, ebx
cmovg eax, ecx
lea ecx, [edi + 0x64]
push eax
call fcn.0046b9b0
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x64], ebx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x45baee
shl eax, 2
push eax
mov eax, dword [edi + 0x6c]
push dword [edi + 0x78]
lea eax, [eax + ecx*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x74]
add esp, 0xc
test ecx, ecx
jns 0x45bae7
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x70]
call fcn.0046b9b0
mov dword [edi + 0x70], 0
cmp dword [edi + 0x34], 0
je 0x45bb63
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.00459130
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, dword [eax]
test ecx, ecx
je 0x45bb63
cmp ecx, 1
jne 0x45bb26
mov eax, dword [eax + 8]
cmp dword [eax + 0x1c], 0
jne 0x45bb26
cmp dword [eax + 0x20], 0
je 0x45bb63
mov ebx, dword [edi + 0x64]
mov ecx, dword [edi + 0x68]
cmp ebx, ecx
jne 0x45bb53
inc ebx
test ecx, ecx
je 0x45bb40
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x45bb45
mov eax, 8
cmp eax, ebx
lea ecx, [edi + 0x64]
cmovg ebx, eax
push ebx
call fcn.0046b9b0
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x6c]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
inc dword [edi + 0x64]
mov edx, dword [0x629148]
mov byte [edi + 0x38], 1
cmp dword [edi + 0x64], 0
jle 0x45bb78
mov eax, dword [edi + 0x6c]
jmp 0x45bb7a
xor eax, eax
mov dword [edi + 0x48], eax
xor ebx, ebx
mov eax, dword [edi + 0x64]
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov eax, dword [edi + 4]
mov ecx, dword [edi + 8]
mov dword [edi + 0x50], ecx
mov dword [edi + 0x4c], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x10]
mov dword [edi + 0x58], ecx
mov dword [edi + 0x54], eax
mov ecx, dword [edx + 0x5c]
mov eax, dword [edx + 0x58]
mov dword [edi + 0x60], ecx
xor ecx, ecx
mov dword [edi + 0x5c], eax
cmp dword [edi + 0x64], ecx
jle 0x45bc02
nop
mov eax, dword [edi + 0x6c]
mov esi, dword [eax + ebx*4]
mov ecx, dword [esi]
test ecx, ecx
jle 0x45bbed
lea eax, [ecx + ecx*4]
shl eax, 3
mov edx, dword [esi + 8]
cmp dword [eax + edx - 0xc], 0
jne 0x45bbed
cmp dword [eax + edx - 8], 0
jne 0x45bbed
dec ecx
sub eax, 0x28
mov dword [esi], ecx
test ecx, ecx
jg 0x45bbd2
mov ecx, dword [esi + 0x18]
inc ebx
add ecx, dword [edi + 0x44]
mov dword [edi + 0x44], ecx
mov eax, dword [esi + 0xc]
add dword [edi + 0x40], eax
cmp ebx, dword [edi + 0x64]
jl 0x45bbc0
add dword [ebp + 0xa4], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x40]
inc ecx
add dword [ebp + 0xa8], eax
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebp + 0x47bc]
jl 0x45ba62
mov edx, 5
mov ecx, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
jmp fcn.004582c0