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

Disassembly:
push 0xffffffffffffffff
push 0x62a57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push esi
mov al, byte [0xd04a14]
mov dword [esp + 0xf4], 1
test al, 1
jne 0x56ea2d
or al, 1
xor esi, esi
mov byte [0xd04a14], al
lea eax, [esp + 0x27]
push eax
lea ecx, [esp + 0x23]
push esi
push ecx
mov ecx, 0xd04a00
call fcn.00486740
push 0x56ef90
call fcn.006132e0
add esp, 4
jmp 0x56ea2f
xor esi, esi
cmp dword [0xd04a0c], esi
je 0x56ea41
mov ecx, 0xd04a00
call fcn.004868a0
mov eax, dword [esp + 0x110]
push ebx
push ebp
cmp eax, esi
push edi
je 0x56ead3
mov edx, dword [esp + 0x114]
mov edx, dword [edx]
mov dword [esp + 0x10], edx
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x56ea6c
mov eax, 0x62d4bc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x3c
jge 0x56ea7e
dec ecx
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x56ea8a
mov eax, 0x62d4bc
lea edx, [esp + 0x34]
push edx
push ecx
push eax
call fcn.005a9050
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ecx
push edx
push eax
mov ecx, 0xd04a00
call fcn.00486710
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x40], ebp
jmp 0x56eadb
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
cmp dword [esp + 0x11c], 1
jbe 0x56eb80
lea ecx, [esp + 0x10]
call fcn.004388e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x114]
cmp edx, eax
je 0x56eb80
mov edi, dword [edx + 0x14]
cmp edi, esi
jne 0x56eb0d
mov edi, 0x62d4bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [edx + 0x14]
not ecx
dec ecx
cmp eax, esi
jne 0x56eb23
mov eax, 0x62d4bc
lea edx, [esp + 0x34]
push edx
push ecx
push eax
call fcn.005a9050
mov eax, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], esi
mov ecx, dword [eax + 0xc]
lea eax, [esp + 0x44]
mov dword [esp + 0x18], ecx
push edx
push eax
mov ecx, 0xd04a00
call fcn.00486710
mov eax, dword [eax]
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x10], ecx
mov eax, dword [esp + 0x34]
cmp ebx, eax
jge 0x56eb68
mov ebx, eax
lea ecx, [esp + 0x10]
call fcn.004388e0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x114]
cmp edx, eax
jne 0x56eb01
mov esi, dword [esp + 0x108]
mov ecx, dword [esp + 0x10c]
lea edx, [ebx + esi]
cmp edx, 0x3f1
jle 0x56eba3
mov esi, 0x3f1
sub esi, ebx
add ecx, 0x14
mov edi, dword [esp + 0x11c]
imul edi, ebp
lea eax, [edi + ecx]
cmp eax, 0x2fb
jbe 0x56ebbe
mov ecx, 0x2fb
sub ecx, edi
cmp esi, 5
jl 0x56ebc8
cmp ecx, 5
jge 0x56ebcd
mov ecx, 5
lea eax, [ebp + ebp*2]
lea eax, [eax + eax*4]
shl eax, 2
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x56ebe2
mov ebx, eax
add edi, ecx
lea edx, [esi + ebx]
push edi
push edx
push ecx
lea eax, [esp + 0x58]
push esi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [esp + 0x11c]
xor esi, esi
cmp eax, esi
je 0x56ee86
mov cl, byte [0x675a15]
xor edx, edx
sar edx, cl
mov cl, byte [0x675a19]
xor eax, eax
push 0x80
shl edx, cl
mov cl, byte [0x675a14]
sar eax, cl
mov cl, byte [0x675a18]
and edx, 0xffff
shl eax, cl
mov cl, byte [0x675a16]
and eax, 0xffff
or edx, eax
xor eax, eax
sar eax, cl
mov ecx, dword [esp + 0x5c]
add ecx, 2
and eax, 0xffff
or edx, eax
mov eax, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x58]
add edx, 3
add eax, 0xfffffffe
push edx
add ecx, 0xfffffffd
push eax
push ecx
call dword [0xd36b5c]
mov ecx, dword [esp + 0x12c]
add esp, 0x18
mov dword [esp + 0x24], esi
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x11c]
cmp eax, esi
jle 0x56ee8d
xor ecx, ecx
mov dword [esp + 0x2c], ecx
jmp 0x56ecaa
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [esp + 0x50]
lea edx, [ecx + eax]
add ecx, eax
mov eax, dword [esp + 0x4c]
add edx, ebp
push edx
mov edx, dword [esp + 0x58]
push edx
push ecx
lea ecx, [esp + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetRect]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x14]
cmp eax, esi
jne 0x56ecdc
mov eax, 0x62d4bc
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x94]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, 0x62d4bc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [edx + 0x14]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x56ed10
mov ebp, eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x5c]
lea eax, [esp + 0x8c]
mov dword [esp + 0x5c], ecx
push edx
push eax
lea ecx, [esp + 0x128]
mov dword [esp + 0x68], 0
call fcn.00486bc0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
mov edx, dword [eax + 4]
lea eax, [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x24], edx
call fcn.0045bbb0
mov esi, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x68], edx
mov edi, dword [eax + 0x14]
test edi, edi
jne 0x56ed75
mov edi, 0x62d4bc
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x44]
lea edx, [esp + 0x7c]
push ecx
push edx
mov ecx, 0xd04a00
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
call fcn.00486bc0
mov edx, dword [eax]
mov ecx, dword [esi + 0x10]
push ebp
push 0x6416d0
mov eax, dword [eax + 4]
push 0xffffffffffffffff
push 0xffffffffffffffff
mov dword [esp + 0x78], eax
push ecx
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [edx + 0x10]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [esp + 0x80]
dec ecx
push ecx
mov ecx, ebx
sub ecx, esi
push eax
mov eax, dword [esp + 0x8c]
shr ecx, 1
add ecx, ebp
push eax
push ecx
call fcn.005a8380
add esp, 0x24
lea ecx, [esp + 0x14]
call fcn.006071a8
mov ecx, dword [esp + 0x10]
mov edx, dword [0x6a04c4]
mov byte [esp + 0x100], 2
mov eax, dword [ecx + 8]
cmp eax, edx
je 0x56ee2e
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.006071a8
mov eax, dword [esi]
mov ecx, dword [0x6a04c4]
cmp eax, ecx
je 0x56ee1f
mov esi, eax
mov eax, dword [esi]
cmp eax, ecx
jne 0x56ee17
lea ecx, [esp + 0x20]
call fcn.00607244
mov dword [esp + 0x10], esi
jmp 0x56ee4d
mov eax, dword [ecx + 4]
cmp ecx, dword [eax + 8]
jne 0x56ee44
mov ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x56ee36
cmp dword [ecx + 8], eax
je 0x56ee4d
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x100], 1
call fcn.00607244
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x11c]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], esi
jl 0x56eca0
xor esi, esi
mov ecx, dword [esp + 0x114]
mov eax, dword [ecx]
push ecx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x11c]
mov byte [esp + 0x10c], 0
call fcn.00436650
mov ecx, dword [esp + 0x114]
push ecx
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x114], esi
mov dword [esp + 0x11c], esi
call fcn.006071a8
mov eax, dword [0x6a04c8]
pop edi
dec eax
pop ebp
mov dword [0x6a04c8], eax
pop ebx
jne 0x56eef6
mov edx, dword [0x6a04c4]
push edx
call fcn.006066eb
add esp, 4
mov dword [0x6a04c4], esi
lea ecx, [esp + 8]
call fcn.00607244
mov eax, dword [esp + 0x118]
mov dword [esp + 0xf4], 0xffffffff
push eax
mov ecx, dword [eax]
lea eax, [esp + 0xc]
push ecx
push eax
lea ecx, [esp + 0x120]
call fcn.00486770
mov ecx, dword [esp + 0x118]
push ecx
call fcn.006066eb
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x118], esi
mov dword [esp + 0x120], esi
call fcn.006071a8
mov eax, dword [0xa24848]
dec eax
mov dword [0xa24848], eax
jne 0x56ef6f
mov edx, dword [0xa24844]
push edx
call fcn.006066eb
add esp, 4
mov dword [0xa24844], esi
lea ecx, [esp + 0x14]
call fcn.00607244
mov ecx, dword [esp + 0xec]
pop esi
mov dword fs:[0], ecx
add esp, 0xf4
ret