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

Disassembly:
push 0xffffffffffffffff
push 0x6ceaac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x38], ebx
call fcn.004a45c0
mov al, byte [esp + 0x13]
xor esi, esi
mov dword [esp + 0xa4], esi
mov byte [ebx + 8], al
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
mov cl, byte [esp + 0x13]
mov dword [ebx + 0x1c], esi
mov byte [ebx + 0x18], cl
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], esi
mov dl, byte [esp + 0x13]
lea ebp, [ebx + 0x28]
mov byte [ebp], dl
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
mov al, byte [esp + 0x13]
mov dword [ebx + 0x3c], esi
mov byte [ebx + 0x38], al
mov dword [ebx + 0x40], esi
mov dword [ebx + 0x44], esi
mov cl, byte [esp + 0x13]
mov dword [ebx + 0x4c], esi
mov byte [ebx + 0x48], cl
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x54], esi
mov dl, byte [esp + 0x13]
mov dword [ebx + 0x5c], esi
mov byte [ebx + 0x58], dl
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x64], esi
mov al, byte [esp + 0x13]
mov dword [ebx + 0x6c], esi
mov byte [ebx + 0x68], al
mov dword [ebx + 0x70], esi
mov dword [ebx + 0x74], esi
mov cl, byte [esp + 0x13]
mov dword [ebx + 0x7c], esi
mov byte [ebx + 0x78], cl
mov dword [ebx + 0x80], esi
mov dword [ebx + 0x84], esi
lea ecx, [ebx + 0x8c]
mov byte [esp + 0xa4], 8
call fcn.0061d780
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 9
mov dword [ebx], 0x6e27f0
call fcn.0061bb00
push 6
push 0x71e2d8
lea ecx, [esp + 0x24]
mov byte [esp + 0xac], 0xa
mov byte [esp + 0x1b], 0
call fcn.0061d820
mov ax, word [esp + 0xac]
mov byte [esp + 0xa4], 0xb
sar ax, 8
push eax
mov word [esp + 0x24], ax
push 4
lea ecx, [esp + 0x24]
call fcn.0061dbc0
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push esi
mov dword [esp + 0x2c], ecx
mov byte [ecx], dl
call fcn.004138c0
mov edi, str.PID.db
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, dword [esp + 0x2c]
push edi
mov dword [esp + 0x2c], edi
call fcn.00414230
test al, al
je 0x5afdb2
mov eax, dword [esp + 0x28]
mov ecx, edi
mov edx, ecx
mov esi, str.PID.db
mov eax, dword [eax + 4]
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
call fcn.00414210
xor esi, esi
lea ecx, [esp + 0x4c]
call fcn.0061bef0
movzx ax, al
cmp ax, si
je 0x5b0241
push 0xaf
push esi
lea ecx, [esp + 0x24]
call fcn.0061dbc0
push esi
push 1
lea ecx, [esp + 0x24]
call fcn.0061dbc0
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.0061dbc0
push esi
push 3
lea ecx, [esp + 0x24]
call fcn.0061dbc0
mov ecx, dword [esp + 0x20]
push ecx
push 4
lea ecx, [esp + 0x24]
call fcn.0061dbc0
push esi
push 5
lea ecx, [esp + 0x24]
call fcn.0061dbc0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x44]
call fcn.0061c400
mov dword [esp + 0x18], eax
lea edi, [ebx + 0x38]
mov byte [esp + 0xa4], 0xc
cmp edi, eax
je 0x5aff7b
mov ecx, dword [eax + 4]
cmp ecx, esi
mov dword [esp + 0x14], ecx
jne 0x5afe51
xor edx, edx
jmp 0x5afe59
mov edx, dword [eax + 8]
sub edx, ecx
sar edx, 2
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], edx
cmp ecx, esi
jne 0x5afe68
xor ecx, ecx
jmp 0x5afe77
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
sub ecx, edx
mov edx, dword [esp + 0x20]
sar ecx, 2
cmp edx, ecx
ja 0x5afeb3
mov ecx, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00414d10
mov edx, dword [edi + 8]
add esp, 0xc
mov ecx, edi
push edx
push eax
call fcn.00413d20
mov ecx, dword [esp + 0x18]
call fcn.00647dd0
mov ecx, dword [edi + 4]
lea edx, [ecx + eax*4]
mov dword [edi + 8], edx
jmp 0x5aff7b
mov ecx, eax
call fcn.00647dd0
mov edx, eax
mov ecx, edi
mov dword [esp + 0x14], edx
call fcn.006480f0
mov ecx, dword [esp + 0x14]
cmp ecx, eax
ja 0x5aff21
mov edx, dword [esp + 0x18]
lea edi, [ebx + 0x38]
mov ecx, edi
mov eax, dword [edx + 4]
mov dword [esp + 0x14], eax
call fcn.00647dd0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [ecx + eax*4]
mov ecx, dword [edx + 4]
mov edx, dword [edi + 4]
mov dword [esp + 0x14], eax
push edx
push eax
push ecx
call fcn.00414d10
mov eax, dword [esp + 0x24]
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [eax + 8]
push ecx
push eax
push edx
mov ecx, edi
call fcn.00413d50
jmp 0x5afe9c
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x3c]
lea edi, [ebx + 0x38]
push eax
push ecx
mov ecx, edi
call fcn.00413d20
mov eax, dword [edi + 4]
push eax
call fcn.006a64d0
mov ecx, dword [esp + 0x1c]
add esp, 4
call fcn.00647dd0
cmp eax, esi
jge 0x5aff4e
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.006a6832
mov ecx, dword [esp + 0x1c]
add esp, 4
mov dword [edi + 4], eax
mov edx, dword [ecx + 8]
mov ecx, dword [ecx + 4]
push eax
push edx
push ecx
mov ecx, edi
call fcn.00413d50
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, eax
mov byte [esp + 0xa4], 0xb
mov dword [esp + 0x14], eax
je 0x5affaa
push esi
mov ecx, edi
call fcn.00415c90
mov eax, dword [esp + 0x14]
add edi, 4
cmp edi, eax
jne 0x5aff93
mov edi, dword [esp + 0x2c]
push edi
call fcn.006a64d0
mov ecx, dword [ebx + 0x3c]
add esp, 4
cmp ecx, esi
jne 0x5affc2
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x5affd3
mov eax, dword [ebx + 0x40]
sub eax, ecx
sar eax, 2
cmp ax, si
mov dword [esp + 0x18], eax
jg 0x5affd8
mov byte [esp + 0x13], 1
cmp ax, si
jle 0x5b0238
movsx eax, ax
xor edi, edi
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x50]
lea ecx, [ebx + 0x48]
add eax, edi
push eax
push 1
push edx
call fcn.00414350
mov eax, dword [esp + 0x20]
add edi, 4
dec eax
mov dword [esp + 0x20], eax
jne 0x5affea
mov eax, dword [esp + 0x18]
cmp ax, si
jle 0x5b0238
movsx ecx, ax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
push ecx
push eax
push eax
call fcn.00414d10
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, ebp
push eax
push edi
call fcn.00413d20
mov edx, dword [esp + 0x18]
mov dword [ebp + 8], edi
mov eax, dword [ebx + 0x4c]
lea ecx, [esp + 0x3c]
add edx, eax
lea eax, [esp + 0x28]
push edx
push eax
call fcn.0061c400
mov edi, eax
cmp ebp, edi
mov byte [esp + 0xa4], 0xd
je 0x5b0174
mov ecx, dword [edi + 4]
cmp ecx, esi
jne 0x5b007d
mov dword [esp + 0x20], esi
jmp 0x5b0089
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x20], eax
mov ecx, ebp
call fcn.00647dd0
cmp dword [esp + 0x20], eax
ja 0x5b00cb
mov edx, dword [ebp + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00414d10
mov ecx, dword [ebp + 8]
add esp, 0xc
push ecx
push eax
mov ecx, ebp
call fcn.00413d20
mov ecx, edi
call fcn.00647dd0
mov edx, dword [ebp + 4]
lea eax, [edx + eax*4]
mov dword [ebp + 8], eax
jmp 0x5b0174
mov ecx, ebp
call fcn.006480f0
mov ecx, edi
mov esi, eax
call fcn.00647dd0
cmp eax, esi
ja 0x5b0121
mov esi, dword [edi + 4]
mov ecx, ebp
call fcn.00647dd0
mov ecx, dword [ebp + 4]
lea esi, [esi + eax*4]
mov eax, dword [edi + 4]
push ecx
push esi
push eax
call fcn.00414d10
mov edx, dword [ebp + 8]
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, ebp
push edx
push eax
push esi
call fcn.00413d50
mov ecx, edi
call fcn.00647dd0
mov ecx, dword [ebp + 4]
xor esi, esi
lea edx, [ecx + eax*4]
mov dword [ebp + 8], edx
jmp 0x5b0174
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push eax
push ecx
mov ecx, ebp
call fcn.00413d20
mov eax, dword [ebp + 4]
push eax
call fcn.006a64d0
add esp, 4
mov ecx, edi
call fcn.00647dd0
xor esi, esi
cmp eax, esi
jge 0x5b014b
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.006a6832
add esp, 4
mov dword [ebp + 4], eax
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
push eax
push ecx
push edi
mov ecx, ebp
call fcn.00413d50
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
cmp edi, eax
mov byte [esp + 0xa4], 0xb
mov dword [esp + 0x20], eax
je 0x5b01a3
push esi
mov ecx, edi
call fcn.00415c90
mov eax, dword [esp + 0x20]
add edi, 4
cmp edi, eax
jne 0x5b018c
mov edi, dword [esp + 0x2c]
push edi
call fcn.006a64d0
mov ecx, dword [ebp + 4]
add esp, 4
cmp ecx, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
je 0x5b01cc
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp ax, si
jg 0x5b01d1
mov byte [esp + 0x13], 1
mov edi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
cmp edi, eax
jae 0x5b021e
push esi
mov ecx, edi
call fcn.0061daa0
push 1
mov ecx, edi
mov byte [esp + 0x28], al
call fcn.0061daa0
push 2
mov ecx, edi
mov byte [esp + 0x29], al
call fcn.0061daa0
lea ecx, [ebx + 0x78]
lea edx, [esp + 0x24]
mov byte [esp + 0x26], al
push edx
mov eax, dword [ecx + 8]
push 1
push eax
call fcn.00525fe0
mov eax, dword [ebx + 0x30]
add edi, 4
cmp edi, eax
jb 0x5b01db
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x5b0024
lea ecx, [esp + 0x3c]
call fcn.0061c140
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0x1c]
push eax
push 5
call fcn.0061dbc0
mov cl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push esi
mov byte [ebp], cl
mov ecx, ebp
call fcn.004138c0
mov edi, str.InitCmd.db
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
mov ecx, ebp
push edi
mov dword [esp + 0x2c], edi
call fcn.00414230
test al, al
je 0x5b02b5
mov eax, dword [ebp + 4]
mov ecx, edi
mov edx, ecx
mov esi, str.InitCmd.db
mov edi, eax
mov eax, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebp
call fcn.00414210
xor esi, esi
lea ecx, [esp + 0x4c]
call fcn.0061bef0
movzx ax, al
cmp ax, si
je 0x5b0468
push 1
push 1
lea ecx, [esp + 0x24]
call fcn.0061dbc0
push 1
push 2
lea ecx, [esp + 0x24]
call fcn.0061dbc0
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x28]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.0061c400
mov ebp, eax
mov dword [esp + 0x18], ebp
lea edi, [ebx + 8]
mov byte [esp + 0xa4], 0xe
cmp edi, ebp
je 0x5b0421
mov ecx, edi
call fcn.00647dd0
mov edx, eax
mov ecx, ebp
mov dword [esp + 0x14], edx
call fcn.00647dd0
mov ecx, dword [esp + 0x14]
cmp eax, ecx
ja 0x5b0362
mov edx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
push edx
push eax
push ecx
call fcn.00414d10
mov ecx, dword [edi + 8]
add esp, 0xc
push ecx
push eax
mov ecx, edi
call fcn.00413d20
mov ecx, ebp
call fcn.00647dd0
mov edx, dword [edi + 4]
lea eax, [edx + eax*4]
mov dword [edi + 8], eax
jmp 0x5b0421
mov ecx, edi
call fcn.006480f0
mov ecx, dword [esp + 0x18]
mov ebp, eax
call fcn.00647dd0
cmp eax, ebp
ja 0x5b03cc
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x14], ecx
mov ecx, edi
call fcn.00647dd0
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 4]
lea eax, [edx + eax*4]
mov edx, dword [edi + 4]
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
call fcn.00414d10
mov ecx, dword [edi + 8]
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x20]
add esp, 0xc
push ecx
push eax
push edx
mov ecx, edi
call fcn.00413d50
mov ecx, ebp
call fcn.00647dd0
mov ecx, dword [edi + 4]
lea edx, [ecx + eax*4]
mov dword [edi + 8], edx
jmp 0x5b0421
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call fcn.00413d20
mov eax, dword [edi + 4]
push eax
call fcn.006a64d0
mov ebp, dword [esp + 0x1c]
add esp, 4
mov ecx, ebp
call fcn.00647dd0
cmp eax, esi
jge 0x5b03f8
xor eax, eax
lea edx, [eax*4]
push edx
call fcn.006a6832
add esp, 4
mov dword [edi + 4], eax
mov ecx, dword [ebp + 8]
mov ebp, dword [ebp + 4]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00413d50
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0xac], 0xb
call fcn.00413d20
mov edx, dword [esp + 0x2c]
push edx
call fcn.006a64d0
mov eax, dword [edi + 4]
add esp, 4
cmp eax, esi
je 0x5b045a
mov ecx, dword [edi + 8]
sub ecx, eax
sar ecx, 2
jne 0x5b045f
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x3c]
call fcn.0061c140
mov dl, byte [esp + 0x13]
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x24], esp
push esi
mov ecx, ebp
mov byte [ebp], dl
call fcn.004138c0
mov edi, str.DataItemList.db
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.DataItemList.db
mov ecx, ebp
call fcn.00414050
lea ecx, [esp + 0x4c]
call fcn.0061bef0
movzx ax, al
cmp ax, si
je 0x5b0511
push 2
push 2
lea ecx, [esp + 0x24]
call fcn.0061dbc0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0061c400
lea edi, [ebx + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0xa8], 0xf
call fcn.00413460
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], 0xb
call fcn.00413420
mov eax, dword [edi + 4]
cmp eax, esi
je 0x5b0503
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 2
jne 0x5b0508
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x3c]
call fcn.0061c140
mov al, byte [esp + 0x13]
test al, al
je 0x5b055e
push esi
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 6
push 0x7133ac
call fcn.0061d820
push ecx
mov byte [esp + 0xb4], 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push 6
push 0x7133a4
call fcn.0061d820
mov ecx, 0x72bae0
mov byte [esp + 0xb4], 0xb
call fcn.0061ef70
jmp 0x5b0565
mov ecx, ebx
call fcn.0058bce0
mov ax, word [esp + 0xac]
lea ecx, [esp + 0x1c]
mov word [ebx + 0x88], ax
mov byte [esp + 0xa4], 0xa
call fcn.0061d8c0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 9
call fcn.0061bc60
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
mov eax, ebx
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x98
ret 4