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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc4
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x60
mov dword [esp + 0x14], ebx
call fcn.005ee1d0
push 0x200
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xff
call fcn.005753b0
mov esi, dword [ebp + 0xc]
add esp, 8
cmp esi, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ebx
mov word [eax], bx
je 0x5bf5fd
mov eax, dword [ebp + 0x10]
push 1
push 0x1009199c
push eax
call fcn.00576270
add esp, 0xc
test eax, eax
jne 0x5bf5fd
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.005764e0
add esp, 4
test eax, eax
jne 0x5bf5fd
push 0x10083b04
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.005739d0
mov esi, dword [esp + 0x4c]
push esi
lea ecx, [esp + 0x24]
call fcn.005739d0
cmp esi, ebx
je 0x5bf127
push esi
call fcn.00575460
add esp, 4
mov edi, dword [esp + 0x24]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call fcn.005798b0
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.00575280
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x38]
push edx
push edi
call fcn.005d79b0
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
call dword [0x10083050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10083064]
lea eax, [esi + 0x20]
push eax
lea ecx, [esi + 0x18]
push ecx
lea edx, [esi + 0x10]
push edx
add esi, 8
push esi
push edi
call fcn.005d7a60
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x18]
push eax
call fcn.005ee2b0
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.005beed0
cmp dword [ebp + 0x1c], ebx
jne 0x5bf1de
mov eax, dword [edi]
mov edx, dword [eax + 0x48]
lea ecx, [esp + 0x40]
push ecx
mov ecx, edi
mov dword [esp + 0x14], 1
call edx
mov ecx, eax
call fcn.005bd420
test eax, eax
mov byte [esp + 0x17], bl
je 0x5bf1e3
mov byte [esp + 0x17], 1
test byte [esp + 0x10], 1
je 0x5bf1f3
lea ecx, [esp + 0x40]
call fcn.005d82d0
cmp byte [esp + 0x17], bl
lea ecx, [esp + 0x4c]
je 0x5bf40a
mov eax, dword [ebp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.00577c50
mov esi, dword [eax]
add esp, 8
push ebx
push ebx
push 0x20
push 1
push 1
push ebx
push ebx
lea ecx, [esp + 0x5c]
call fcn.005edbd0
mov ecx, eax
call fcn.005d8300
push eax
push ebx
push pe_nt_image_headers32
push esi
lea ecx, [esp + 0x64]
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
push eax
push ebx
lea ecx, [esp + 0xc0]
call fcn.005bd370
mov ecx, eax
call fcn.005d8300
push eax
push 0x120089
lea edx, [esp + 0x38]
push edx
call fcn.005829a0
lea ecx, [esp + 0x4c]
call fcn.00573b10
push 0x100
lea ecx, [esp + 0x1c]
call fcn.005798b0
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [0x10143fa4]
push ebx
push eax
push 1
push edi
push ecx
push edx
lea ecx, [esp + 0x58]
add esi, 0x4f4
call fcn.005edbd0
mov ecx, eax
call fcn.005d8300
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x2c]
push ebx
push ebx
push ebx
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
cmp eax, 0xc0000004
je 0x5bf282
cmp eax, 0x80000005
je 0x5bf282
cmp eax, 0xc0000023
je 0x5bf282
cmp eax, ebx
jne 0x5bf3fc
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x34], esi
add esi, 0x3c
shr eax, 1
add eax, 1
lea edi, [eax + eax]
push edi
call fcn.00575310
mov ecx, dword [esi]
mov edx, dword [esp + 0x38]
push ecx
add edx, 0x5e
push edx
push eax
mov dword [esp + 0x48], eax
call fcn.005752a0
mov esi, dword [esp + 0x48]
push 1
push 0x10083b04
push esi
mov word [edi + esi - 2], bx
call fcn.00576270
add esp, 0x1c
test eax, eax
jne 0x5bf3ef
mov esi, dword [esp + 0x1c]
cmp esi, 0x6c
je 0x5bf380
mov edi, dword [esp + 0x18]
push 0x6c
call fcn.00575310
add esp, 4
cmp esi, 0x6c
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0x6c
jb 0x5bf360
mov esi, 0x6c
xor eax, eax
cmp esi, ebx
jbe 0x5bf377
mov cl, byte [eax + edi]
mov edx, dword [esp + 0x18]
mov byte [eax + edx], cl
add eax, 1
cmp eax, esi
jb 0x5bf366
push edi
call fcn.00575460
add esp, 4
mov esi, dword [esp + 0x18]
lea eax, [esi + 0x3c]
mov dword [eax], 4
mov eax, dword [eax]
push eax
lea ecx, [esi + 0x5e]
push 0x10091994
push ecx
call fcn.005752a0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov dword [esi], ebx
call fcn.005ee2b0
push 0x10091994
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.005739d0
lea eax, [esp + 0x4c]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.005beed0
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x5bf3eb
push eax
call fcn.00575460
add esp, 4
mov esi, dword [esp + 0x38]
cmp esi, ebx
je 0x5bf3fc
push esi
call fcn.00575460
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00576590
jmp 0x5bf5e9
push 0x10091994
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.005739d0
mov edx, dword [esp + 0x4c]
push edx
lea ecx, [esp + 0x24]
call fcn.005739d0
lea ecx, [esp + 0x4c]
call fcn.00573b10
mov eax, dword [esp + 0x24]
lea eax, [eax*4 + 0x60]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], eax
call fcn.005798b0
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
push eax
push esi
call fcn.00575280
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
add esp, 8
lea eax, [esp + 0x34]
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 + 0x34]
cmp eax, ebx
je 0x5bf48e
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 + 0x2c]
push ecx
mov ecx, edi
call edx
lea ecx, [esp + 0x2c]
call fcn.005d83a0
sub ax, 1
movzx edi, ax
cmp di, bx
je 0x5bf4cc
push edi
lea ecx, [esp + 0x30]
call fcn.005d83b0
cmp ax, 0x5c
je 0x5bf4da
add edi, 0xffff
cmp di, bx
jne 0x5bf4b1
lea ecx, [esp + 0x2c]
call fcn.005d8300
mov word [eax], bx
jmp 0x5bf4ea
lea ecx, [esp + 0x2c]
call fcn.005d8300
lea ecx, [edi + edi - 2]
mov word [eax], cx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x30]
call fcn.005d82e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esi + 0x38]
push edx
lea edx, [esp + 0x44]
push edx
call eax
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x10083050]
add eax, eax
mov dword [esi + 0x3c], eax
mov edx, dword [esp + 0x20]
push edx
lea eax, [esi + 0x5e]
push eax
call dword [0x10083064]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
call fcn.005d82e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
lea eax, [esi + 8]
push eax
lea eax, [esp + 0x44]
push eax
call edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
call fcn.005d82e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
call edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
call fcn.005d82e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x2c]
lea eax, [esi + 0x10]
push eax
lea eax, [esp + 0x44]
push eax
call edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x30]
call fcn.005d82e0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
add esi, 0x20
push esi
lea eax, [esp + 0x44]
push eax
call edx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push eax
call fcn.005ee2b0
lea ecx, [esp + 0x20]
push ecx
mov edx, ecx
mov ecx, dword [ebp + 0x18]
push edx
call fcn.005beed0
lea ecx, [esp + 0x2c]
call fcn.005d82d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5bf5e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5bf5fa
push eax
call fcn.00575460
add esp, 4
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x1c], ebx
je 0x5bf890
mov eax, dword [ebp + 0x28]
mov eax, dword [eax]
cmp eax, ebx
mov dword [esp + 0x34], eax
je 0x5bfa26
lea ecx, [esp + 0x2c]
push 4
push ecx
call fcn.00575280
add esp, 8
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [ebp + 0x28]
call fcn.005bec70
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x5bf86b
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x50]
call eax
test eax, eax
jne 0x5bf86b
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x5bf86b
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0xb0]
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
push eax
call fcn.005d71a0
add esp, 8
test eax, eax
je 0x5bf86b
mov edi, dword [esp + 0x24]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.005798b0
mov esi, dword [esp + 0x38]
push edi
push esi
call fcn.00575280
mov ecx, dword [esp + 0x34]
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 0x1008341c
lea ecx, [esp + 0xc8]
mov dword [esp + 0x20], eax
add edi, 0x18
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
push eax
call edx
test dword [ebx], 0x10
jne 0x5bf75b
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esp + 0x40]
push eax
push 0x1008341c
lea ecx, [esp + 0xb8]
add edi, 0x20
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
mov edx, dword [edi]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x20]
push eax
call dword [0x10083050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10083064]
mov eax, dword [esp + 0x10]
mov edi, dword [eax]
mov ebx, eax
lea eax, [esi + 8]
push eax
push 0x1008341c
lea ecx, [esp + 0xc0]
add edi, 0x24
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
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 0x1008341c
lea ecx, [esp + 0xd0]
add edi, 0x28
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
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 0x1008341c
lea ecx, [esp + 0x98]
add edi, 0x2c
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
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 0x1008341c
lea ecx, [esp + 0x54]
mov ebx, eax
add edi, 0x30
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
push eax
mov eax, dword [edi]
mov ecx, ebx
call eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.005ee2b0
mov ecx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
call fcn.005beed0
lea ecx, [esp + 0x10]
call fcn.005a6e90
lea ecx, [esp + 0x38]
call fcn.005739a0
lea ecx, [esp + 0x2c]
call fcn.005a6e90
xor ebx, ebx
jmp 0x5bf874
lea ecx, [esp + 0x2c]
call fcn.005a6e90
cmp dword [esp + 0x34], ebx
jne 0x5bf617
lea ecx, [esp + 0x20]
call fcn.00573b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ecx, [esp + 0x64]
call fcn.005d81b0
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, esi
call edx
test eax, eax
jne 0x5bfa1d
lea ecx, [esp + 0x64]
call fcn.005d8300
push eax
lea eax, [esp + 0x94]
push eax
call fcn.005771b0
add esp, 8
push eax
lea ecx, [esp + 0x24]
call fcn.00574330
lea ecx, [esp + 0x90]
call fcn.00573b10
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x20]
push ecx
push edx
lea ecx, [esp + 0x54]
call fcn.005bd3c0
mov ecx, eax
call fcn.005d8300
push eax
call fcn.005d71a0
add esp, 8
test eax, eax
jne 0x5bf914
lea ecx, [esp + 0x64]
call fcn.005d82d0
jmp 0x5bf9fd
mov edi, dword [esp + 0x24]
lea edi, [edi*4 + 0x60]
push edi
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.005798b0
mov esi, dword [esp + 0x38]
push edi
push esi
call fcn.00575280
mov eax, dword [esp + 0x68]
add esp, 8
mov dword [esi + 0x38], eax
test dword [esp + 0x60], 0x10
jne 0x5bf968
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x28], eax
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
mov eax, dword [esp + 0x20]
push eax
call dword [0x10083050]
add eax, eax
mov dword [esi + 0x3c], eax
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esi + 0x5e]
push edx
call dword [0x10083064]
mov eax, dword [esp + 0x70]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x78]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x7c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x80]
mov dword [esi + 0x10], ecx
mov edx, dword [esp + 0x84]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x88]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x8c]
lea edx, [esp + 0x38]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 8]
push edx
call fcn.005ee2b0
lea eax, [esp + 0x20]
mov ecx, eax
push eax
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.005beed0
lea ecx, [esp + 0x38]
call fcn.005739a0
lea ecx, [esp + 0x64]
call fcn.005d82d0
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x64]
call fcn.005d81b0
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x58]
push eax
push ebx
mov ecx, esi
call edx
test eax, eax
je 0x5bf8b0
lea ecx, [esp + 0x64]
call fcn.005d82d0
lea ecx, [esp + 0x20]
call fcn.00573b10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24