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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d27ee
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5f1f44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x60c4f0]
mov ecx, dword [0x60c4f0]
mov edx, dword [eax + 0x3c]
xor edx, dword [ecx + 0x34]
mov eax, dword [0x60c4f0]
xor edx, dword [eax + 0x78]
and edx, 3
push edx
call fcn.0057dff0
add esp, 4
call fcn.0053ce20
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x53c68f
mov dword [0x60c3b0], 1
xor eax, eax
jmp 0x53cc93
mov dword [ebp - 0xc4], 8
mov dword [ebp - 0xc0], 0x1000
mov ecx, dword [0x60c4f0]
mov edx, dword [0x60c4f0]
mov eax, dword [ecx + 0x24]
xor eax, dword [edx + 0x18]
mov ecx, dword [0x60c4f0]
xor eax, dword [ecx + 0x78]
mov edx, dword [0x60c4f0]
xor eax, dword [edx + 0x20]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd8]
xor edx, edx
mov ecx, 0x1000
div ecx
test edx, edx
jne 0x53c6fd
mov edx, dword [ebp - 0xd8]
mov dword [ebp - 0x110], edx
jmp 0x53c712
mov eax, dword [ebp - 0xd8]
shr eax, 0xc
add eax, 1
shl eax, 0xc
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0x3c]
add edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], edx
mov eax, dword [0x60c4f0]
mov ecx, dword [0x60c4f0]
mov edx, dword [eax + 0x18]
xor edx, dword [ecx + 0x78]
mov eax, dword [0x60c4f0]
xor edx, dword [eax + 0x20]
push edx
lea ecx, [ebp - 0xc8]
call fcn.00524640
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xdc], ecx
jmp 0x53c76f
mov edx, dword [ebp - 0xdc]
add edx, 1
mov dword [ebp - 0xdc], edx
mov eax, dword [ebp - 0xdc]
cmp eax, dword [ebp - 0xd0]
je 0x53c7ab
mov ecx, dword [ebp - 0xd8]
sub ecx, 8
push ecx
lea ecx, [ebp - 0xc8]
call fcn.00524660
mov edx, dword [ebp - 0x3c]
lea eax, [edx + eax + 8]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
call fcn.00542480
add esp, 8
jmp 0x53c760
mov edx, dword [ebp - 0x3c]
add edx, 8
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x2d], 0
cmp dword [0x60c260], 1
jne 0x53c81a
mov eax, dword [0x60c268]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x53c7dc
mov edx, dword [0x60c268]
movsx eax, byte [edx]
cmp eax, 0x2d
jne 0x53c81a
push 1
push 0x5f5134
mov ecx, dword [0x60c268]
add ecx, 1
push ecx
call fcn.00592a7c
add esp, 0xc
test eax, eax
je 0x53c816
push 1
push 0x5f5130
mov edx, dword [0x60c268]
add edx, 1
push edx
call fcn.00592a7c
add esp, 0xc
test eax, eax
jne 0x53c81a
mov byte [ebp - 0x2d], 1
mov dword [ebp - 0xb4], 0
movzx eax, byte [ebp - 0x2d]
push eax
lea ecx, [ebp - 0xb4]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0053cf60
add esp, 0xc
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x53c84c
xor eax, eax
jmp 0x53cc93
lea ecx, [ebp - 0xb0]
call fcn.0053e510
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebp - 0x38]
add edx, 4
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0xbc], 0
je 0x53c9a7
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x38]
add edx, 4
mov dword [ebp - 0x38], edx
mov dword [ebp - 0xf4], 0x10000
mov byte [ebp - 0xfd], 0
lea eax, [ebp - 0xfd]
push eax
mov ecx, dword [ebp - 0xf4]
push ecx
lea ecx, [ebp - 0xec]
call fcn.0053ee20
mov byte [ebp - 4], 1
mov edx, 1
test edx, edx
je 0x53c932
push 0
lea ecx, [ebp - 0xec]
call fcn.0053ef00
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xfc], eax
push 0
mov ecx, dword [ebp - 0xbc]
push ecx
lea edx, [ebp - 0xfc]
push edx
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.0053ccb0
add esp, 0x14
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0xfc], 0
jne 0x53c91e
jmp 0x53c932
mov edx, dword [ebp - 0xf8]
add edx, dword [ebp - 0xfc]
mov dword [ebp - 0xf8], edx
jmp 0x53c8c5
push 0
lea ecx, [ebp - 0xec]
call fcn.0053ef00
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xbc]
mov ecx, dword [ebp - 0xf0]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp - 0xf0]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0053e700
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x118]
push edx
lea ecx, [ebp - 0xb0]
call fcn.0053e790
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00534e60
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xec]
call fcn.0053eea0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.0053d1d0
add esp, 8
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jne 0x53c9ea
mov dword [ebp - 0x104], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00534e60
mov eax, dword [ebp - 0x104]
jmp 0x53cc93
push 0x5f5118
mov eax, dword [0x60c3a4]
push eax
call fcn.0053d900
add esp, 8
mov dword [ebp - 0x58], eax
push 0
push 1
mov ecx, dword [0x60c3a4]
push ecx
call dword [0x60c3a8]
test eax, eax
jne 0x53ca46
mov dword [0x60c3b0], 5
mov dword [ebp - 0x108], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00534e60
mov eax, dword [ebp - 0x108]
jmp 0x53cc93
mov edx, dword [0x60c288]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [0x60c4f0]
mov edx, dword [0x60c4f0]
mov eax, dword [ecx + 0x3c]
xor eax, dword [edx + 0x34]
mov ecx, dword [0x60c4f0]
xor eax, dword [ecx + 0x78]
and eax, 0x80
push eax
mov edx, dword [0x60c4f0]
mov eax, dword [0x60c4f0]
mov ecx, dword [edx + 0x60]
xor ecx, dword [eax + 0x34]
mov edx, dword [0x60c4f0]
xor ecx, dword [edx + 0x78]
and ecx, 0x400
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
mov eax, dword [0x60c4f0]
mov ecx, dword [0x60c4f0]
mov edx, dword [eax + 0x74]
xor edx, dword [ecx + 0x18]
mov eax, dword [0x60c4f0]
xor edx, dword [eax + 0x34]
mov ecx, dword [0x60c4f0]
xor edx, dword [ecx + 0x14]
push edx
push fcn.0057e4c0
push 0x564490
push 0x564430
push 0x564350
push fcn.0057c360
push 0x53c610
push fcn.0057c700
push fcn.0057be70
push fcn.0057e2d0
push 0x57ded0
push 0x57de70
push 0x57de50
push 0x57da70
mov edx, dword [0x60c3a0]
push edx
call dword [ebp - 0x58]
add esp, 0x58
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0x44]
mov dword [0x60c290], ecx
mov edx, dword [ebp - 0x54]
mov dword [0x60c28c], edx
mov dword [ebp - 0x34], 0
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x53cb43
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
movzx edx, byte [0x60c295]
test edx, edx
je 0x53cb5d
mov eax, dword [ebp - 0x34]
or eax, 2
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
movzx ecx, byte [0x60c295]
test ecx, ecx
je 0x53cb88
cmp dword [ebp - 0xb4], 0
je 0x53cb88
mov edx, dword [ebp - 0xb4]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0x94], 0x60c3b0
mov dword [ebp - 0x90], 0x60c3b8
mov eax, dword [0x60c4f0]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x84], edx
mov eax, dword [0x60c39c]
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x7c], ecx
mov ecx, 0x60c4b8
call fcn.00534d90
mov dword [ebp - 0x78], eax
cmp dword [0x60c260], 2
jne 0x53cbeb
mov edx, dword [0x60c280]
mov dword [ebp - 0x11c], edx
jmp 0x53cbf9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x74], eax
mov ecx, dword [0x5f170c]
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x60], 0xffffffff
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 0x60c4d4
lea ecx, [ebp - 0x94]
push ecx
call dword [ebp - 0xb8]
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x60], 0xffffffff
je 0x53cc4c
mov edx, dword [ebp - 0x60]
mov dword [0x60c1ec], edx
jmp 0x53cc5c
cmp dword [ebp - 0x40], 1
je 0x53cc5c
mov dword [0x60c1ec], 1
cmp dword [ebp - 0xb4], 0
je 0x53cc72
mov eax, dword [ebp - 0xb4]
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00534e60
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0058dc6e
mov esp, ebp
pop ebp
ret