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

Disassembly:
push 0xffffffffffffffff
push 0x4ab7c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x898
push ebx
mov ebx, ecx
mov byte [0x4bd0a4], 2
push ebp
mov al, byte [ebx + 0x34]
xor ebp, ebp
push esi
push edi
test al, al
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x1c], ebp
jne 0x484004
push str.CANPRINT
push 1
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x1c], ebp
je 0x484004
push 0xffffffffffffffff
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call fcn.004876c0
mov esi, dword [esp + 0x8bc]
test al, al
je 0x484295
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x484295
call fcn.00485c50
test eax, eax
je 0x484295
mov al, byte [esp + 0x1b]
push 0
lea ecx, [esp + 0x34]
mov byte [esp + 0x34], al
call fcn.0041ba60
mov edi, 0x4c4510
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.0041c2e0
test al, al
je 0x484090
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, 0x4c4510
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x8bc]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xa9]
mov byte [esp + 0xa8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esi
mov dword [esp + 0x8b0], 1
stosb byte es:[edi], al
mov dword [esp + 0x14], 0
call fcn.00488620
test ax, ax
jle 0x48424f
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x8c0]
push edx
call fcn.00488570
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x8b4], 2
call fcn.00475910
lea ecx, [esp + 0x20]
mov byte [esp + 0x8b0], 4
call fcn.00475a40
lea ecx, [esp + 0x10]
call fcn.00475d20
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.00475d00
test ax, ax
jle 0x484151
lea edi, [esp + 0xa8]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2x
push edi
call fcn.00498c63
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.00475d00
movsx ecx, ax
cmp esi, ecx
jl 0x484129
mov edi, str.Req:
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x34]
push ebp
call fcn.0041c2e0
test al, al
je 0x484197
mov edi, dword [esp + 0x34]
mov ecx, ebp
mov edx, ecx
mov esi, str.Req:
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov byte [eax + ebp], 0
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x4ad134]
sub ecx, edx
cmp ecx, esi
ja 0x4841bf
call fcn.0049813b
test esi, esi
jbe 0x484206
mov edx, dword [esp + 0x38]
push 0
lea ecx, [esp + 0x34]
lea ebp, [edx + esi]
push ebp
call fcn.0041c2e0
test al, al
je 0x484206
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
lea esi, [esp + 0xac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
call fcn.0041c2c0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x484213
mov eax, 0x4ad138
mov ecx, dword [ebx + 0x10]
push 1
push eax
call fcn.00486660
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b0], 1
call fcn.00475a40
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x8bc]
inc esi
mov dword [esp + 0x14], esi
call fcn.00488620
movsx eax, ax
cmp esi, eax
jl 0x4840ce
mov eax, dword [esp + 0x34]
xor esi, esi
cmp eax, esi
mov byte [esp + 0x8b0], 0
je 0x48427e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x484275
cmp al, 0xff
je 0x484275
dec al
mov byte [ecx], al
jmp 0x48427e
push ecx
call fcn.00498130
add esp, 4
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov esi, dword [esp + 0x8bc]
mov al, byte [ebx + 4]
test al, al
jne 0x4842ae
mov edi, dword [ebx + 0x14]
mov ecx, 0x19
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0x1c], ecx
lea ecx, [esp + 0x4c]
call fcn.004888c0
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x8b0], 5
cmp eax, 1
je 0x4843f1
mov edx, dword [ebx + 0x1c]
mov byte [edx], 2
mov eax, dword [ebx + 0x1c]
mov byte [eax + 1], 8
mov al, byte [esp + 0x8c0]
test al, al
je 0x4842ef
mov ecx, dword [ebx + 0x1c]
mov byte [ecx + 2], 0xff
jmp 0x4842f6
mov edx, dword [ebx + 0x1c]
mov byte [edx + 2], 0
mov ecx, esi
call fcn.00488620
mov ecx, dword [ebx + 0x1c]
push 0xffff
mov byte [ecx + 3], al
mov eax, dword [ebx + 0x1c]
add eax, 4
mov ecx, esi
push eax
mov dword [ebx + 0x1c], eax
call fcn.00488640
mov cl, byte [ebx + 4]
lea edi, [eax + 4]
test cl, cl
je 0x4843ce
mov edi, dword [ebx + 0x1c]
add ebx, 0x20
add edi, eax
lea edx, [esp + 0x40]
mov dword [ebx - 4], edi
mov eax, dword [ebx + 8]
push edx
push 1
push eax
mov ecx, ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], 2
call fcn.00485590
test ebp, ebp
je 0x484369
lea eax, [esp + 0x70]
push eax
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8b8]
mov cl, byte [esp + 0x4c]
mov byte [esi], cl
lea ecx, [esp + 0x4c]
call fcn.0042b7b0
test eax, eax
jge 0x484385
xor eax, eax
shl eax, 4
push eax
call fcn.00498866
mov edx, dword [esp + 0x58]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.0042bad0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8b0], 6
push ecx
lea ecx, [esi + 0x10]
call fcn.0047f2f0
mov dword [esp + 0x48], 1
jmp 0x484517
call fcn.004876c0
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx]
push edi
push edx
call fcn.0048da50
mov al, byte [esp + 0x8c0]
test al, al
je 0x4843f1
mov dword [ebx + 0xc], 1
mov edi, dword [ebx + 0x18]
mov ecx, 0x19
xor eax, eax
push 0xffff
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx]
push eax
call fcn.0048db20
mov esi, eax
call fcn.004876c0
test esi, esi
jne 0x484486
test ebp, ebp
je 0x484431
lea ecx, [esp + 0x70]
push ecx
push 1
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8b8]
mov dl, byte [esp + 0x4c]
lea ecx, [esp + 0x4c]
mov byte [esi], dl
call fcn.0042b7b0
test eax, eax
jge 0x48444d
xor eax, eax
shl eax, 4
push eax
call fcn.00498866
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x58]
push eax
push ecx
mov ecx, esi
call fcn.0042bad0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea edx, [esp + 0x5c]
mov byte [esp + 0x8b0], 7
push edx
jmp 0x484507
mov esi, dword [ebx + 0x18]
add esi, 8
movzx ax, byte [esi]
inc esi
test ax, ax
jne 0x48452f
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4844b7
lea eax, [esp + 0x70]
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x8b8]
mov cl, byte [esp + 0x4c]
mov byte [esi], cl
lea ecx, [esp + 0x4c]
call fcn.0042b7b0
test eax, eax
jge 0x4844d3
xor eax, eax
shl eax, 4
push eax
call fcn.00498866
mov edx, dword [esp + 0x58]
add esp, 4
mov dword [esi + 4], eax
mov ecx, esi
push eax
mov eax, dword [esp + 0x54]
push edx
push eax
call fcn.0042bad0
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x8b0], 8
push ecx
lea ecx, [esi + 0x10]
call fcn.0047f2f0
mov dword [esp + 0x48], 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x8b0], 0
call fcn.004889c0
mov eax, esi
jmp 0x484acc
movsx eax, ax
test eax, eax
jle 0x48463b
mov dword [esp + 0x10], eax
movzx di, byte [esi]
lea ecx, [esp + 0x14]
inc esi
call fcn.00475900
mov dl, byte [esp + 0x1b]
xor ebp, ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
movsx ebx, di
test ebx, ebx
mov byte [esp + 0x8b0], 0xa
jle 0x4845de
movzx di, byte [esi]
inc esi
cmp di, 0xff
jne 0x48458e
movzx di, byte [esi]
movzx ax, byte [esi + 1]
shl edi, 8
add edi, eax
add esi, 2
test di, di
je 0x4845bd
push edi
push esi
lea ecx, [esp + 0x1c]
call fcn.00475de0
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
push 1
push edx
lea ecx, [esp + 0x2c]
call fcn.0041c400
movsx eax, di
add esi, eax
inc ebp
cmp ebp, ebx
jl 0x484571
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4845de
mov ecx, dword [esp + 0x28]
sub ecx, eax
sar ecx, 2
je 0x4845de
lea edx, [esp + 0x20]
lea ecx, [esp + 0x4c]
push edx
call fcn.00488c30
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, ebx
mov byte [esp + 0x8b0], 9
je 0x484600
mov ecx, edi
call fcn.00475a40
add edi, 4
cmp edi, ebx
jne 0x4845f2
mov eax, dword [esp + 0x24]
push eax
call fcn.00498130
xor eax, eax
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x8b0], 5
call fcn.00475a40
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x48453e
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
je 0x48465a
lea ecx, [esp + 0x70]
push ecx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x8bc]
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.0048acd0
add esp, 8
call fcn.004876c0
test al, al
je 0x484946
mov ecx, dword [esp + 0x40]
mov ecx, dword [ecx + 0x10]
cmp ecx, ebx
je 0x484946
call fcn.00485c50
test eax, eax
je 0x484946
mov edi, 0x4c4510
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [esp + 0x1b]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x20], dl
push ecx
push 0x4c4510
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0041c100
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b0], 0xb
call fcn.00475900
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x4a8]
mov byte [esp + 0x4a8], 0
rep stosd dword es:[edi], eax
mov ecx, 0xc
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, 0x4c4510
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x8b4], 0xc
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.0041c2e0
test al, al
je 0x48474e
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
mov esi, 0x4c4510
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], ebx
call fcn.00488ea0
test ax, ax
jle 0x484908
xor ebx, ebx
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
push esi
call fcn.00488de0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4848ef
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
cmp ebx, edx
jae 0x4848ef
push ebx
push esi
lea ecx, [esp + 0x54]
call fcn.00488de0
mov ecx, eax
call fcn.0041b6f0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00475910
lea ecx, [esp + 0x14]
call fcn.00475ae0
lea ecx, [esp + 0x10]
call fcn.00475d20
lea ecx, [esp + 0x10]
mov ebp, eax
xor esi, esi
call fcn.00475d00
test ax, ax
jle 0x484801
lea edi, [esp + 0x4a8]
xor eax, eax
mov al, byte [esi + ebp]
push eax
push str._.2X
push edi
call fcn.00498c63
add esp, 0xc
lea ecx, [esp + 0x10]
inc esi
add edi, 3
call fcn.00475d00
movsx ecx, ax
cmp esi, ecx
jl 0x4847d9
push 0
lea edx, [esp + 0x78]
push str._ld_Ans:
push edx
call fcn.00498c63
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call fcn.0041c2e0
test al, al
je 0x48485c
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov eax, ecx
lea esi, [esp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [ecx + ebp], 0
lea edi, [esp + 0x4a8]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ad134]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
cmp edx, esi
ja 0x484884
call fcn.0049813b
test esi, esi
jbe 0x4848cd
mov eax, dword [esp + 0x28]
push 0
lea ecx, [esp + 0x24]
lea ebp, [eax + esi]
push ebp
call fcn.0041c2e0
test al, al
je 0x4848cd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ecx, esi
lea esi, [esp + 0x4a8]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], ebp
mov byte [eax + ebp], 0
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4848da
mov eax, 0x4ad138
mov ecx, dword [esp + 0x40]
push 1
push eax
mov ecx, dword [ecx + 0x10]
call fcn.00486660
inc ebx
jmp 0x484766
inc esi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], esi
call fcn.00488ea0
movsx edx, ax
cmp esi, edx
jl 0x484764
lea ecx, [esp + 0x10]
mov byte [esp + 0x8b0], 0xb
call fcn.00475a40
mov eax, dword [esp + 0x24]
mov byte [esp + 0x8b0], 5
test eax, eax
je 0x484946
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x48493d
cmp al, 0xff
je 0x48493d
dec al
mov byte [ecx], al
jmp 0x484946
push ecx
call fcn.00498130
add esp, 4
mov ebx, dword [esp + 0x8b8]
mov ecx, dword [esp + 0x50]
mov al, byte [esp + 0x4c]
test ecx, ecx
mov byte [ebx], al
jne 0x48495f
xor eax, eax
jmp 0x484968
mov eax, dword [esp + 0x54]
sub eax, ecx
sar eax, 4
test eax, eax
jge 0x48496e
xor eax, eax
shl eax, 4
push eax
call fcn.00498866
mov ecx, dword [esp + 0x58]
mov ebp, dword [esp + 0x54]
add esp, 4
cmp ebp, ecx
mov dword [ebx + 4], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], eax
je 0x484a27
add ebp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov byte [esp + 0x8b0], 0xd
je 0x484a0e
mov cl, byte [ebp - 4]
mov byte [eax], cl
mov ecx, dword [ebp]
test ecx, ecx
jne 0x4849b8
xor eax, eax
jmp 0x4849c0
mov eax, dword [ebp + 4]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x4849c6
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.00498866
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 4]
mov esi, dword [ebp]
cmp esi, ebx
je 0x4849fd
push esi
push edi
call fcn.0041cb10
add esi, 4
add esp, 8
add edi, 4
cmp esi, ebx
jne 0x4849e9
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x8b8]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x40]
add ebp, 0x10
add eax, 0x10
lea edx, [ebp - 4]
mov dword [esp + 0x1c], eax
cmp edx, ecx
jne 0x484998
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ecx, dword [esp + 0x60]
mov al, byte [esp + 0x5c]
test ecx, ecx
mov byte [esp + 0x8b0], 0xe
mov byte [ebx + 0x10], al
jne 0x484a48
xor eax, eax
jmp 0x484a51
mov eax, dword [esp + 0x64]
sub eax, ecx
sar eax, 3
test eax, eax
jge 0x484a57
xor eax, eax
lea ecx, [eax*8]
push ecx
call fcn.00498866
mov ecx, dword [esp + 0x68]
mov edi, dword [esp + 0x64]
add esp, 4
mov esi, eax
cmp edi, ecx
mov dword [ebx + 0x14], eax
mov ebp, ecx
mov dword [esp + 0x40], esi
je 0x484aa4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x8b0], 0xf
je 0x484a96
push edi
mov ecx, esi
call fcn.00446e20
add edi, 8
add esi, 8
cmp edi, ebp
mov dword [esp + 0x40], esi
jne 0x484a7e
mov dl, byte [esp + 0x6c]
lea ecx, [esp + 0x4c]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov byte [ebx + 0x20], dl
mov dword [esp + 0x48], 1
mov byte [esp + 0x8b0], 0
call fcn.004889c0
mov eax, ebx
mov ecx, dword [esp + 0x8a8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x8a4
ret 0xc