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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
push esi
push edi
lea eax, [esp + 0x14]
mov edi, ecx
push 4
push eax
mov dword [esp + 0x78], edi
call fcn.00577d48
add esp, 8
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [edi + 0x58]
call fcn.005b3c38
test eax, eax
je 0x58c9cd
lea eax, [esp + 0xc]
push 4
push eax
call fcn.00577d48
mov esi, dword [esp + 0x1c]
xor ebx, ebx
add esp, 8
cmp esi, ebx
je 0x58c5a6
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push 0x1008eb3c
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x58c611
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x24]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58c5e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [esp + 0xc], ecx
je 0x58c5ff
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 4]
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x58c680
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x58c67c
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x58c621
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax]
lea ecx, [esp + 0x30]
push ecx
push 0x1008e3f0
push esi
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
je 0x58c98c
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
lea eax, [esp + 0x24]
push eax
call edx
push eax
lea ecx, [esp + 0x10]
call fcn.005d9788
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x58c66c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x58c67c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jne 0x58c6ea
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x30]
push edx
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58c6b1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov ecx, dword [esi]
cmp ecx, ebx
mov dword [esp + 0xc], ecx
je 0x58c6c7
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 4]
call ecx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x58c6df
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x58c68b
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
test eax, eax
je 0x58c7cc
mov eax, dword [ebp + 0x18]
sub eax, 2
je 0x58c757
sub eax, 4
je 0x58c741
sub eax, 2
je 0x58c71f
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], 0xc000000d
jmp 0x58c76b
cmp dword [ebp + 0x14], 0x40
jae 0x58c735
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], 0xc0000004
jmp 0x58c76b
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [edx], ebx
mov dword [eax], ebx
jmp 0x58c76b
cmp dword [ebp + 0x14], 0x30
jae 0x58c7c0
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], 0xc0000004
jmp 0x58c76b
cmp dword [ebp + 0x14], 8
jae 0x58c78f
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
mov dword [edx], ebx
mov dword [eax], 0xc0000004
lea ecx, [esp + 0x10]
call fcn.005b1928
lea ecx, [esp + 0xc]
call fcn.005b1928
lea ecx, [esp + 0x14]
call fcn.005b1928
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shr ecx, 1
push ecx
add eax, 4
push eax
lea ecx, [esp + 0x84]
add esi, 0x68
call fcn.005b0868
mov ecx, eax
call fcn.005b0858
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], ebx
jmp 0x58c76b
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x28]
push eax
call edx
push 0x100832d8
lea ecx, [esp + 0x2c]
call fcn.005b0bf8
mov esi, dword [0x100c3678]
push 0x4021
push 3
lea ecx, [esp + 0x84]
add esi, 0x164
call fcn.005b0808
mov ecx, eax
call fcn.005b0858
push eax
push ebx
push 0x40
lea ecx, [esp + 0x3c]
call fcn.005b0858
push eax
push ebx
lea ecx, [esp + 0xbc]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
mov edx, dword [esi]
push eax
push 0x100002
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
call eax
test eax, eax
jne 0x58c94b
cmp dword [edi + 4], 1
jne 0x58c940
mov eax, dword [ebp + 0x18]
sub eax, 1
je 0x58c8cb
sub eax, 1
je 0x58c879
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
jmp 0x58c929
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
shr edx, 1
push edx
add eax, 4
push eax
lea ecx, [esp + 0x84]
add esi, 0x68
call fcn.005b0868
mov ecx, eax
call fcn.005b0858
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
lea ecx, [esp + 0x28]
mov dword [edx], ebx
call fcn.005b0b78
lea ecx, [esp + 0x18]
call fcn.0057f4d8
jmp 0x58c76b
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0xc]
shr eax, 1
push eax
lea ecx, [edi + 0x12]
push ecx
lea ecx, [esp + 0x90]
add esi, 0x68
call fcn.005b0868
mov ecx, eax
call fcn.005b0858
mov ecx, dword [esp + 0x24]
mov edx, dword [esi]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [edi + 8]
mov eax, dword [eax + 0x78]
push edx
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push edi
call eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
mov dword [ecx], ebx
mov dword [edx], ebx
lea ecx, [esp + 0x28]
call fcn.005b0b78
lea ecx, [esp + 0x18]
call fcn.0057f4d8
jmp 0x58c76b
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
jmp 0x58c929
lea ecx, [esp + 0x28]
call fcn.005b0b78
lea ecx, [esp + 0x18]
call fcn.0057f4d8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x58c971
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58c981
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x58d08c
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [ecx], 0xc0000229
je 0x58c9ae
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58c9c2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x58d08c
cmp dword [edi + 4], 1
jne 0x58d07d
mov eax, dword [ebp + 0x18]
cmp eax, 1
je 0x58c9e8
cmp eax, 2
jne 0x58d07d
lea eax, [esp + 0x18]
push 4
push eax
call fcn.00577d48
add esp, 8
lea ecx, [esp + 0x28]
call fcn.005b0a58
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x28]
push ecx
push edx
mov ecx, edi
call fcn.00588238
test eax, eax
je 0x58ca47
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x28]
mov dword [eax], 1
call fcn.005b0b78
xor ebx, ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x58ca3c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
jmp 0x58d08c
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.00577d48
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.00577d48
lea edx, [esp + 0x20]
push 4
push edx
call fcn.00577d48
add esp, 0x18
lea ecx, [esp + 0x3c]
call fcn.005b0418
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x3c]
call fcn.005b0778
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x2c]
call fcn.005b07e8
mov ecx, dword [eax + 4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax]
xor ebx, ebx
push ebx
push 0x40
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.005b08a8
mov ecx, eax
call fcn.005b0858
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
push eax
mov ecx, edi
call fcn.0058b018
test eax, eax
je 0x58cf1f
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x40]
call fcn.005c5f78
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x58cb02
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x58cb14
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x58cb28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], ebx
lea ecx, [esp + 0x38]
call fcn.005b07a8
lea eax, [esp + 0xc]
push 4
push eax
call fcn.00577d48
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
add esp, 8
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x28], ebx
call edx
xor ecx, ecx
cmp dword [eax], ebx
mov eax, dword [esp + 0x74]
sete cl
cmp eax, ebx
mov esi, ecx
je 0x58cb71
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x74], ebx
cmp esi, ebx
je 0x58cc37
lea ecx, [esp + 0x90]
call fcn.0059f198
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x40]
call fcn.005b0408
mov ecx, eax
call fcn.0059f088
test eax, eax
je 0x58cfac
lea edx, [esp + 0x94]
push edx
call fcn.0059f888
add esp, 4
test eax, eax
je 0x58cfac
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
push 2
lea edx, [esp + 0x98]
push edx
push edx
lea edx, [esp + 0x78]
push edx
call eax
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58cbf0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x58cc06
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x6c]
cmp ecx, ebx
je 0x58cc1e
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0xc]
mov dword [esp + 0x6c], ebx
mov edx, dword [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.00582608
mov dword [esp + 0x24], 1
jmp 0x58ccac
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58cc47
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov ecx, eax
mov dword [esp + 0xc], ecx
je 0x58cc61
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
call edx
test eax, eax
jne 0x58ccac
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x84]
push edx
call eax
push eax
lea ecx, [esp + 0x10]
call fcn.005d9788
lea ecx, [esp + 0x84]
call fcn.005b1928
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x58cfd2
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
test eax, eax
je 0x58cc6c
mov eax, dword [ebp + 0x18]
sub eax, 1
je 0x58ccf0
sub eax, 1
jne 0x58cd47
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
shr ecx, 1
push ecx
add eax, 4
push eax
lea ecx, [esp + 0xd8]
add esi, 0x68
call fcn.005b0868
mov ecx, eax
call fcn.005b0858
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
jmp 0x58cd43
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
mov edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
shr ecx, 1
push ecx
add eax, 0x12
push eax
lea ecx, [esp + 0xc8]
add esi, 0x68
call fcn.005b0868
mov ecx, eax
call fcn.005b0858
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov ecx, dword [esp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, dword [ecx]
mov edx, dword [esi + 8]
mov eax, dword [eax + 0x78]
push edx
call eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx + 0x84]
push esi
call eax
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x24], ebx
je 0x58d071
mov ecx, dword [edi + 8]
push ecx
lea ecx, [esp + 0x34]
call fcn.005b0778
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x2c]
call fcn.005b07e8
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [esp + 0x3c]
push ecx
push ebx
push 0x40
push edx
push eax
lea ecx, [esp + 0xcc]
call fcn.005b08a8
mov ecx, eax
call fcn.005b0858
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
push eax
mov ecx, edi
call fcn.0058b018
test eax, eax
je 0x58d011
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x40]
call fcn.005c5f78
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov esi, dword [esp + 0x10]
call eax
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x24], eax
call edx
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x58d040
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x58ce00
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x30]
call fcn.005b07a8
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58ce1d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x58ce31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x58ce45
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x3c]
call fcn.005b0b78
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x58ce62
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x58ce76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x58ce8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.00577d48
lea ecx, [esp + 0x28]
push 4
push ecx
call fcn.00577d48
lea edx, [esp + 0x20]
push 4
push edx
call fcn.00577d48
add esp, 0x18
lea ecx, [esp + 0x3c]
call fcn.005b0418
mov eax, dword [edi + 8]
push eax
lea ecx, [esp + 0x3c]
call fcn.005b0778
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x2c]
call fcn.005b07e8
mov ecx, dword [eax + 4]
lea edx, [esp + 0x3c]
push edx
mov edx, dword [eax]
push ebx
push 0x40
push ecx
push edx
lea ecx, [esp + 0x90]
call fcn.005b08a8
mov ecx, eax
call fcn.005b0858
push eax
push ebx
lea ecx, [esp + 0xb4]
call fcn.005b0828
mov ecx, eax
call fcn.005b0858
push eax
mov ecx, edi
call fcn.0058b018
test eax, eax
jne 0x58cade
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0x38]
mov dword [eax], 1
call fcn.005b07a8
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x58cf45
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x64], ebx
mov eax, dword [esp + 0x44]
cmp eax, ebx
je 0x58cf59
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x3c]
call fcn.005b0b78
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x58cf76
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x58cf8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x58cf9e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x28]
call fcn.005b0b78
jmp 0x58ca28
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58cf31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xc], ebx
jmp 0x58cf31
mov eax, dword [ebp + 0x1c]
lea ecx, [esp + 0xc]
mov dword [eax], 1
call fcn.005b1928
lea ecx, [esp + 0x3c]
call fcn.005831e8
lea ecx, [esp + 0x10]
call fcn.005b1928
lea ecx, [esp + 0x1c]
call fcn.00583228
lea ecx, [esp + 0x28]
call fcn.005b0b78
lea ecx, [esp + 0x18]
jmp 0x58c778
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 1
lea ecx, [esp + 0x30]
call fcn.005b07a8
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x58cf31
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0xc], ebx
jmp 0x58cf31
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x58d054
mov eax, dword [ecx]
mov edx, dword [esp + 0x20]
mov eax, dword [eax + 0x38]
push edx
call eax
mov eax, dword [esp + 0x34]
cmp eax, ebx
je 0x58d068
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x30]
call fcn.005b07a8
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [eax], ebx
mov dword [ecx], ebx
jmp 0x58d023
mov eax, dword [ebp + 0x1c]
mov dword [eax], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x58d096
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c