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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dx, 0x17f8
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x45c4
mov word [esp + 0xe2], 0x2704
mov byte [esp + 0xe1], 0x47
mov dword [esp + 0xdc], 0x4dc6
mov byte [esp + 0xc3], 0xb1
mov bl, byte [esp + 0xe1]
mov bh, bl
xor bh, 0x4f
mov byte [esp + 0x77], bh
mov bh, byte [esp + 0xe1]
add bh, 0xf5
mov byte [esp + 0xcb], bh
mov si, word [esp + 0xe2]
mov di, si
xor di, 0x4d86
mov word [esp + 0xae], di
cmp dx, word [esp + 0xae]
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov word [esp + 0x32], si
mov byte [esp + 0x31], bl
ja 0x405b4d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0xdc]
xor ecx, 0x4dc7
mov edx, dword [esp + 0x34]
mov dword [esp + 0x9c], edx
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x9c]
mov si, word [esp + 0x32]
mov word [esp + 0x102], si
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x88]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp], ecx
call fcn.004063c0
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x54]
add eax, 0x18
add eax, 0x60
add eax, 8
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
cmp dword [eax + 4], 0
jbe 0x405d80
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x58]
mov byte [esp + 0xf7], 0xa
add eax, dword [ecx]
mov dword [esp + 0x44], eax
mov dx, word [esp + 0x32]
imul dx, dx
mov word [esp + 0x102], dx
mov eax, 0xa346
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0x2d58aa00
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x64], 0x507b
mov edx, dword [esp + 0x64]
mov ecx, dword [ecx + 0xc]
sub eax, dword [esp + 0xdc]
mov dword [esp + 0xd0], ecx
cmp edx, eax
je 0x405835
mov eax, 0x4dc6
sub eax, dword [esp + 0xdc]
cmp dword [esp + 0xd0], eax
je 0x405d7e
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 0xc]
add ecx, dword [esp + 0xc4]
mov edx, esp
mov dword [edx], ecx
call eax
sub esp, 4
mov dword [esp + 0x90], eax
mov byte [esp + 0xf7], 0x42
cmp dword [esp + 0x90], 0
jne 0x4058c7
jmp 0x405d7e
mov eax, 0x4dc6
mov ecx, dword [esp + 0x44]
sub eax, dword [esp + 0xdc]
cmp dword [ecx], eax
je 0x405906
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
add eax, dword [esp + 0xc4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc4]
add ecx, dword [eax + 0x10]
mov dword [esp + 0x50], ecx
jmp 0x4059d7
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0x19d7
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
mov esi, dword [esp + 0xc4]
mov eax, dword [eax + 0x10]
add esi, eax
xor ecx, 0x58ab
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0xe4]
and eax, eax
mov dword [esp + 0xe4], eax
sub ecx, 0x19d8
setb bl
xor eax, eax
test edx, edx
mov bh, al
mov byte [esp + 0x30], bh
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x2b], bl
je 0x405979
mov al, byte [esp + 0x30]
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
test al, al
jne 0x405c03
jmp 0x405987
mov eax, dword [esp + 0x5c]
mov cx, word [esp + 0x32]
and cx, cx
mov word [esp + 0x102], cx
mov dword [esp + 0x80], eax
mov dl, byte [esp + 0x31]
xor dl, 0xff
mov byte [esp + 0xf7], dl
mov eax, dword [esp + 0xc4]
mov esi, dword [esp + 0x44]
add eax, dword [esi + 0x10]
mov esi, dword [esp + 0xe4]
or esi, dword [esp + 0xe4]
mov dword [esp + 0xe4], esi
mov dword [esp + 0x50], eax
jmp 0x4059d9
mov al, pe_nt_image_headers32
sub al, byte [esp + 0xe1]
cmp al, byte [esp + 0x77]
jb 0x4058db
mov eax, dword [esp + 0xdc]
xor eax, 0x4dc6
mov ecx, dword [esp + 0x80]
cmp dword [ecx], eax
je 0x405c7a
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
add eax, 0x2a01
adc ecx, 0
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], ecx
mov dl, byte [esp + 0xcb]
mov byte [esp + 0x43], dl
xor eax, 0x2a54
or eax, ecx
mov dword [esp + 0x24], eax
je 0x405baa
jmp 0x405a49
cmp byte [esp + 0x43], 0x8d
ja 0x40588e
mov eax, 0x4dc6
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0xdc]
xor edx, 0x80004dc6
mov bl, byte [esp + 0x31]
or bl, 0x81
mov byte [esp + 0xf7], bl
sub eax, ecx
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x80]
and edx, dword [eax]
cmp edx, 0
je 0x405b4d
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x2774
mov eax, dword [esp + 0x78]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
mov edx, dword [esp + 0xe4]
xor edx, 0x6193
mov dword [esp + 0xe4], edx
mov edx, dword [esp + 0x80]
mov edx, dword [edx]
xor eax, 0x1a5a
mov dword [esp + 0x3c], edx
sub eax, 0x2775
setb bl
xor edx, edx
test ecx, ecx
mov bh, dl
mov byte [esp + 0x23], bh
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1b], bl
je 0x405b09
mov al, byte [esp + 0x23]
mov byte [esp + 0x1b], al
mov al, byte [esp + 0x1b]
test al, al
jne 0x405c03
jmp 0x405b17
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0xdc]
mov edx, dword [esp + 0x90]
mov esi, dword [esp + 0x84]
xor ecx, 0xb239
and eax, ecx
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], edx
call esi
sub esp, 8
mov dword [esp + 0xd8], eax
jmp 0x405baa
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx]
mov dx, word [esp + 0x32]
xor dx, 0xffff
mov word [esp + 0x102], dx
add eax, ecx
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0xd4]
mov bl, byte [esp + 0x31]
mov byte [esp + 0xf7], bl
add ecx, 2
mov esi, dword [esp + 0x90]
mov edi, esp
mov dword [edi + 4], ecx
mov dword [edi], esi
call eax
sub esp, 8
mov dword [esp + 0xd8], eax
mov eax, 0xab30
mov ecx, dword [esp + 0xdc]
xor ecx, 0x7c41
sub eax, dword [esp + 0xdc]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xd8]
mov dword [esp + 0x7c], edx
cmp eax, ecx
jb 0x405cab
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x7c]
mov dword [eax], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xdc]
add ecx, 0xffffb23a
cmp dword [eax], ecx
jne 0x405c57
mov dword [esp + 0xcc], 0x6116
mov byte [esp + 0xf7], 0
mov eax, dword [esp + 0xdc]
mov ecx, 0x6ac6
sub ecx, eax
mov eax, dword [esp + 0xcc]
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0
cmp ecx, eax
ja 0x405c45
mov eax, dword [esp + 0xdc]
xor eax, 0x4dc6
mov dword [esp + 0x48], eax
jmp 0x405c7a
jmp 0x405c59
mov eax, dword [esp + 0x80]
add eax, 4
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x50]
add eax, 4
mov dword [esp + 0x50], eax
jmp 0x4059d9
mov al, byte [esp + 0xe1]
xor al, 0x46
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
cmp byte [esp + 0xc3], al
jbe 0x405c57
mov eax, dword [esp + 0xdc]
xor eax, 0x4dc6
cmp dword [esp + 0x4c], eax
jne 0x405cab
jmp 0x405d7e
jmp 0x405cad
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
xor edx, edx
mov esi, 0x9451
sub esi, eax
sbb edx, ecx
mov edi, dword [esp + 0x44]
xor eax, 0x444
mov dword [esp + 0x8c], edi
mov byte [esp + 0xad], 0x11
mov bl, byte [esp + 0x31]
xor bl, 0xd3
mov byte [esp + 0xf7], bl
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], eax
mov bl, byte [esp + 0xad]
mov byte [esp + 0x9b], bl
mov word [esp + 0x102], GetConsoleWindow
sub esi, eax
setbe bl
sub edx, ecx
setbe bh
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov byte [esp + 0xf], bh
mov byte [esp + 0xe], bl
je 0x405d36
mov al, byte [esp + 0xf]
mov byte [esp + 0xe], al
mov al, byte [esp + 0xe]
test al, al
jne 0x405be4
jmp 0x405d44
mov al, 0x71
mov cx, word [esp + 0x32]
imul cx, cx
sub al, byte [esp + 0xe1]
mov word [esp + 0x102], cx
cmp al, byte [esp + 0x9b]
jbe 0x405906
mov eax, dword [esp + 0x8c]
add eax, 0x14
mov dword [esp + 0x44], eax
jmp 0x405835
jmp 0x405d80
mov eax, dword [esp + 0x48]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret