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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x60
mov dword [esp + 0x14], ebx
call fcn.0059e9a8
push 0x200
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xff
call fcn.00577e78
mov edi, dword [ebp + 0xc]
add esp, 8
cmp edi, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [eax], bx
je 0x584400
mov eax, dword [ebp + 0x10]
push 1
push 0x1008e3ec
push eax
call fcn.0057f158
add esp, 0xc
test eax, eax
jne 0x584400
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0057f3c8
add esp, 4
test eax, eax
jne 0x584400
push 0x1008e3b8
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0055e228
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x28]
call fcn.0055e228
cmp esi, ebx
je 0x583f0f
push esi
call fcn.00577f28
add esp, 4
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 0x60]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call fcn.0055e0c8
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push edx
push esi
call fcn.00577d48
lea eax, [esi + 0x38]
push eax
push edi
call fcn.0059fc08
mov ecx, dword [esp + 0x34]
add esp, 0x10
push ecx
call dword [0x100820d0]
add eax, eax
mov dword [esi + 0x3c], eax
mov edx, dword [esp + 0x24]
push edx
lea eax, [esi + 0x5e]
push eax
call dword [0x100820cc]
lea ecx, [esi + 0x20]
push ecx
lea edx, [esi + 0x18]
push edx
lea eax, [esi + 0x10]
push eax
add esi, 8
push esi
push edi
call fcn.0059fcb8
add esp, 0x14
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0059ea18
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call fcn.00583cb8
cmp dword [ebp + 0x1c], ebx
jne 0x583fcb
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x38]
push eax
mov ecx, edi
mov dword [esp + 0x14], 1
call edx
mov ecx, eax
call fcn.005b08e8
test eax, eax
mov byte [esp + 0x23], bl
je 0x583fd0
mov byte [esp + 0x23], 1
test byte [esp + 0x10], 1
je 0x583fe0
lea ecx, [esp + 0x38]
call fcn.005b0b78
cmp byte [esp + 0x23], bl
lea ecx, [esp + 0x40]
je 0x5841f9
mov eax, dword [ebp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.005809a8
mov esi, dword [eax]
add esp, 8
push ebx
push ebx
push 0x20
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x54]
call fcn.005b0808
mov ecx, eax
call fcn.005b0858
push eax
push ebx
push 0x40
push esi
lea ecx, [esp + 0x44]
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
push eax
push ebx
lea ecx, [esp + 0xb8]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
push eax
push 0x120089
lea edx, [esp + 0x38]
push edx
call fcn.00567f58
lea ecx, [esp + 0x40]
call fcn.0055e448
push 0x100
lea ecx, [esp + 0x34]
call fcn.0055e0c8
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
mov edx, dword [esp + 0x34]
mov esi, dword [0x100c3678]
push ebx
push eax
mov eax, dword [esp + 0x38]
push 1
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
add esi, 0x524
call fcn.005b0808
mov ecx, eax
call fcn.005b0858
mov ecx, dword [esp + 0x28]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push ebx
push ebx
push ebx
push ecx
mov ecx, esi
call eax
call eax
cmp eax, 0xc0000004
je 0x58406c
cmp eax, 0x80000005
je 0x58406c
cmp eax, 0xc0000023
je 0x58406c
cmp eax, ebx
jne 0x5841eb
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x3c]
mov edi, esi
add esi, 0x3c
shr eax, 1
add eax, 1
add eax, eax
push eax
mov dword [esp + 0x50], eax
call fcn.00577dd8
mov edx, dword [esi]
push edx
lea ecx, [edi + 0x5e]
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.00577d68
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x5c]
push 1
push 0x1008e3b8
push eax
mov word [ecx + eax - 2], bx
call fcn.0057f158
add esp, 0x1c
test eax, eax
jne 0x5841d7
push 6
lea eax, [edi + 0x5e]
push 0x1008e3e4
push eax
mov dword [esi], 6
mov byte [edi + 0x44], 6
call fcn.00577d68
mov dword [edi], ebx
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x6c
je 0x58418f
mov edi, dword [esp + 0x30]
push 0x6c
mov esi, eax
call fcn.00577dd8
add esp, 4
cmp esi, 0x6c
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 0x6c
jb 0x58416f
mov esi, 0x6c
xor eax, eax
cmp esi, ebx
jbe 0x584186
mov dl, byte [eax + edi]
mov ecx, dword [esp + 0x30]
mov byte [eax + ecx], dl
add eax, 1
cmp eax, esi
jb 0x584175
push edi
call fcn.00577f28
add esp, 4
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x30]
push edx
call fcn.0059ea18
push 0x1008e3e4
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0055e228
lea eax, [esp + 0x40]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00583cb8
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x5841d7
push eax
call fcn.00577f28
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5841e8
push eax
call fcn.00577f28
add esp, 4
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x10]
call fcn.0057f4d8
jmp 0x5843ef
push 0x1008e3e4
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.0055e228
mov edx, dword [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
call fcn.0055e228
lea ecx, [esp + 0x40]
call fcn.0055e448
mov eax, dword [esp + 0x28]
lea eax, [eax*4 + 0x60]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.0055e0c8
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
push eax
push esi
call fcn.00577d48
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
add esp, 8
lea eax, [esp + 0x4c]
push eax
mov ecx, edi
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
lea edx, [esp + 0x10]
push edx
call eax
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x58427d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call edx
lea ecx, [esp + 0x18]
call fcn.005b0968
sub ax, 1
movzx eax, ax
cmp ax, bx
mov dword [esp + 0x14], eax
je 0x5842ce
jmp 0x5842ac
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b0c48
cmp ax, 0x5c
je 0x5842dc
mov eax, dword [esp + 0x14]
add eax, 0xffff
cmp ax, bx
mov dword [esp + 0x14], eax
jne 0x5842a8
lea ecx, [esp + 0x18]
call fcn.005b0858
mov word [eax], bx
jmp 0x5842f0
lea ecx, [esp + 0x18]
call fcn.005b0858
mov ecx, dword [esp + 0x14]
lea edx, [ecx + ecx - 2]
mov word [eax], dx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b07e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esi + 0x38]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call dword [0x100820d0]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x100820cc]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b07e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b07e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b07e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x3c]
push eax
call edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
call fcn.005b07e8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
add esi, 0x20
push esi
lea eax, [esp + 0x3c]
push eax
call edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call fcn.0059ea18
lea ecx, [esp + 0x24]
push ecx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.00583cb8
lea ecx, [esp + 0x18]
call fcn.005b0b78
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5843ef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x584400
push eax
call fcn.00577f28
add esp, 4
cmp dword [ebp + 0x1c], ebx
je 0x584693
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x4c], eax
je 0x584828
lea ecx, [esp + 0x14]
push 4
push ecx
call fcn.00577d48
add esp, 8
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [ebp + 0x28]
call fcn.00583a58
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x58466e
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
test eax, eax
jne 0x58466e
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x58466e
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
push eax
call fcn.0059f3f8
add esp, 8
test eax, eax
je 0x58466e
mov edi, dword [esp + 0x28]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0055e0c8
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00577d48
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x3c]
add esp, 8
lea edx, [esp + 0x10]
push edx
call eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
lea ebx, [esi + 0x38]
push ebx
push 0x10082364
lea ecx, [esp + 0xc0]
mov dword [esp + 0x38], eax
add edi, 0x18
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
mov ecx, dword [esp + 0x34]
mov edx, dword [edi]
push eax
call edx
test dword [ebx], 0x10
jne 0x58455e
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x38]
push eax
push 0x10082364
lea ecx, [esp + 0xb0]
add edi, 0x20
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x24]
push eax
call dword [0x100820d0]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x100820cc]
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 8]
push eax
push 0x10082364
lea ecx, [esp + 0xb8]
add edi, 0x24
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 0x18]
push eax
push 0x10082364
lea ecx, [esp + 0xc8]
add edi, 0x28
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 0x10]
push eax
push 0x10082364
lea ecx, [esp + 0x90]
add edi, 0x2c
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
add esi, 0x20
push esi
push 0x10082364
lea ecx, [esp + 0x48]
mov ebx, eax
add edi, 0x30
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0059ea18
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x24]
push edx
mov eax, edx
push eax
call fcn.00583cb8
lea ecx, [esp + 0x10]
call fcn.005b1928
lea ecx, [esp + 0x18]
call fcn.0055e1b8
lea ecx, [esp + 0x14]
call fcn.005b1928
xor ebx, ebx
jmp 0x584677
lea ecx, [esp + 0x14]
call fcn.005b1928
cmp dword [esp + 0x4c], ebx
jne 0x58441a
lea ecx, [esp + 0x24]
call fcn.0055e448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [esp + 0x5c]
call fcn.005b0a58
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x50]
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
jne 0x58481f
jmp 0x5846b8
lea ecx, [esp + 0x5c]
call fcn.005b0858
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0055f248
add esp, 8
push eax
lea ecx, [esp + 0x28]
call fcn.0055ed28
lea ecx, [esp + 0x88]
call fcn.0055e448
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esp + 0x48]
call fcn.005b0888
mov ecx, eax
call fcn.005b0858
push eax
call fcn.0059f3f8
add esp, 8
test eax, eax
jne 0x58471c
lea ecx, [esp + 0x5c]
call fcn.005b0b78
jmp 0x5847ff
mov edi, dword [esp + 0x28]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.0055e0c8
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00577d48
mov eax, dword [esp + 0x60]
add esp, 8
mov dword [esi + 0x38], eax
test dword [esp + 0x58], 0x10
jne 0x584770
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x28], eax
mov edx, dword [esp + 0x54]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x24]
push eax
call dword [0x100820d0]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x100820cc]
mov eax, dword [esp + 0x68]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x6c]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x70]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x74]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x80]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.0059ea18
lea eax, [esp + 0x24]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.00583cb8
lea ecx, [esp + 0x18]
call fcn.0055e1b8
lea ecx, [esp + 0x5c]
call fcn.005b0b78
mov edi, dword [ebp + 0xc]
lea ecx, [esp + 0x5c]
call fcn.005b0a58
mov edx, dword [edi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x50]
push eax
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x5846b8
lea ecx, [esp + 0x5c]
call fcn.005b0b78
lea ecx, [esp + 0x24]
call fcn.0055e448
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24