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

Disassembly:
push 0xffffffffffffffff
push 0x4729da
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.0044e5b0
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x168], ebx
call fcn.0044e5b0
mov al, byte [esp + 0x13]
sub esp, 0x10
mov edx, esp
mov edi, 0x4930f8
or ecx, 0xffffffff
mov dword [esp + 0x4c], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
mov byte [esp + 0x178], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4930f8
mov ecx, edx
call fcn.00413680
push ebx
lea ecx, [esp + 0x34]
call fcn.004565a0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [esp + 0x168], 2
stosb byte es:[edi], al
push 0xffff
lea ecx, [esp + 0x64]
push 0x48699c
push ecx
call fcn.00467c1a
mov al, byte [esp + 0x1f]
push ecx
mov edx, esp
lea edi, [esp + 0x70]
or ecx, 0xffffffff
mov dword [esp + 0x4c], esp
mov byte [edx], al
xor eax, eax
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x74]
push ecx
mov ecx, edx
call fcn.00413680
sub esp, 0x10
lea edx, [esp + 0x33]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push 0x486928
mov byte [esp + 0x190], 3
call fcn.00412fa0
sub esp, 0x10
lea eax, [esp + 0x73]
mov ecx, esp
mov dword [esp + 0x88], esp
push eax
push 0x486a1c
mov byte [esp + 0x1a0], 4
call fcn.00412fa0
sub esp, 0x10
lea edx, [esp + 0x82]
mov ecx, esp
mov dword [esp + 0x9c], esp
push edx
push 0x4930f8
mov byte [esp + 0x1b0], 5
call fcn.00412fa0
sub esp, 0x10
mov byte [esp + 0x1b8], 6
mov esi, esp
mov dword [esp + 0x84], esp
push ecx
mov ecx, esp
mov dword [esp + 0x6c], esp
push 6
push 0x487040
call fcn.0044e650
push esi
call fcn.0045ad10
sub esp, 8
mov byte [esp + 0x1c8], 7
mov esi, esp
mov dword [esp + 0x78], esp
push ecx
mov ecx, esp
mov dword [esp + 0x7c], esp
push 6
push 0x486a98
call fcn.0044e650
push esi
call fcn.0045ad10
add esp, 8
lea eax, [esp + 0xa4]
mov byte [esp + 0x1c8], 2
push eax
mov ecx, 0x4937b8
call fcn.004572d0
mov edx, dword [0x47814c]
mov cx, word [eax]
push edx
add eax, 4
mov word [esp + 0x24], cx
push ebx
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], 8
call fcn.00413260
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x168], 2
cmp eax, ebx
je 0x422732
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x422729
cmp al, 0xff
je 0x422729
dec al
mov byte [ecx], al
jmp 0x422732
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00452fc0
cmp ax, 2
je 0x422761
lea ecx, [esp + 0x20]
call fcn.00452fc0
cmp ax, 1
je 0x4227b2
jmp 0x4225be
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x422786
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x42277d
cmp al, 0xff
je 0x42277d
dec al
mov byte [ecx], al
jmp 0x422786
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x168], bl
call fcn.0044e6f0
mov dword [esp + 0x168], 0xffffffff
jmp 0x422a8b
lea eax, [esp + 0x44]
lea ecx, [esp + 0x20]
push eax
call fcn.004566e0
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x4227cc
mov edi, 0x478288
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x60]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x48]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
je 0x422812
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x422809
cmp al, 0xff
je 0x422809
dec al
mov byte [ecx], al
jmp 0x422812
push ecx
call fcn.00467320
add esp, 4
or esi, 0xffffffff
lea edi, [esp + 0x60]
mov ecx, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
jne 0x422861
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 9
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x487038
jmp 0x422a04
lea ecx, [esp + 0x60]
push ecx
call fcn.00467d6e
add esp, 4
lea edx, [esp + 0x14]
mov ecx, ebp
mov dword [esp + 0x3c], eax
push edx
push 0x486e48
call fcn.0041c9b0
test ax, ax
jg 0x4228b9
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x486710
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xa
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x4869e4
jmp 0x422a04
push 2
lea ecx, [esp + 0x18]
call fcn.0044e8c0
cmp al, 0x67
je 0x422936
push ebx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xb
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x486a88
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x178], 2
call fcn.004570c0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x422a68
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x422a5f
cmp al, 0xff
je 0x422a5f
dec al
mov byte [ecx], al
jmp 0x422a68
push 5
lea ecx, [esp + 0x18]
call fcn.0044e8c0
mov dl, al
push 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x17], dl
call fcn.0044e8c0
xor edx, edx
push 6
mov dh, al
mov al, byte [esp + 0x17]
mov dl, al
lea ecx, [esp + 0x18]
shl edx, 8
mov dword [esp + 0x3c], edx
call fcn.0044e8c0
mov edx, dword [esp + 0x38]
and eax, 0xff
or edx, eax
push 7
shl edx, 8
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edx
call fcn.0044e8c0
mov ecx, dword [esp + 0x38]
and eax, 0xff
or ecx, eax
mov eax, dword [esp + 0x3c]
add eax, ecx
push 0x486e5c
mov edx, eax
mov ecx, eax
sar edx, 0x18
mov byte [0x486e55], dl
mov edx, eax
sar ecx, 0x10
mov byte [0x486e56], cl
push 0x486e50
sar edx, 8
mov ecx, ebp
mov byte [0x486e57], dl
mov byte [0x486e5d], al
call fcn.0041f730
push ebx
push 1
push ecx
test ax, ax
mov ecx, esp
jg 0x422a37
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xc
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x486a88
call fcn.0044e650
mov ecx, 0x4937b8
mov byte [esp + 0x178], 2
call fcn.004570c0
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x422a68
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x422a5f
cmp al, 0xff
je 0x422a5f
dec al
mov byte [ecx], al
jmp 0x422a68
mov dword [esp + 0x24], esp
push 6
push 0x4865e4
call fcn.0044e650
push ecx
mov byte [esp + 0x178], 0xd
mov ecx, esp
mov dword [esp + 0x44], esp
push 6
push 0x486a80
jmp 0x422a04
push ecx
call fcn.00467320
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov byte [esp + 0x168], bl
call fcn.0044e6f0
mov dword [esp + 0x168], esi
lea ecx, [esp + 0x1c]
call fcn.0044e6f0
mov ecx, dword [esp + 0x160]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x15c
ret