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

Disassembly:
push 0xffffffffffffffff
push 0x709078
mov eax, dword fs:[0]
push eax
sub esp, 0x2b0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x2c4]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x2d4]
cmp ebx, 0x100
mov ebp, dword [esp + 0x2d8]
mov edi, dword [esp + 0x2dc]
mov dword [esp + 0x14], 0
ja 0x58af3a
je case.0x58af62.260
lea eax, [ebx - 1]
cmp eax, 0x86
ja case.0x58b2fd.784
movzx eax, byte [eax + 0x58b3ec]
jmp dword [eax*4 + 0x58b380]
lea ecx, [esp + 0x1c]
push ecx
push edi
mov ecx, esi
call fcn.00585c70
mov bl, al
test bl, bl
je 0x58b343
mov dl, byte [esp + 0x1c]
neg dl
sbb edx, edx
neg edx
sub edx, 1
mov dword [esp + 0x14], edx
jmp 0x58b33f
call fcn.00582a10
jmp case.0x58b2fd.784
push ebp
mov eax, edi
shr eax, 0x10
movzx ecx, di
push eax
push ecx
mov ecx, esi
call fcn.00586de0
jmp 0x58b33d
mov edx, edi
shr edx, 0x10
movsx eax, dx
movsx ecx, di
push eax
push ecx
mov ecx, esi
call fcn.00586c40
jmp 0x58b33d
mov eax, dword [0x86ff90]
mov edx, dword [eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call fcn.0057cc90
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
test ebp, ebp
setne al
push eax
mov eax, dword [edx + 0xbc]
call eax
jmp case.0x58b2fd.784
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push ebp
mov ecx, esi
call fcn.00582920
cmp word [esp + 0x1c], 0
mov ecx, dword [esp + 0x20]
movzx eax, word [esp + 0x18]
setne dl
push ecx
mov ecx, esi
push edx
push eax
call fcn.00585ca0
jmp 0x58b33d
push ebp
call fcn.00585d50
jmp 0x58b33d
push ebp
call fcn.00585e80
jmp 0x58b33d
test ebp, ebp
je 0x58a9e2
push ebp
push esi
lea ecx, [esp + 0x1c4]
call fcn.005b9e50
mov ecx, esi
mov dword [esp + 0x2cc], 0
call fcn.0058a700
lea ecx, [esp + 0x1bc]
mov bl, al
mov dword [esp + 0x2cc], 0xffffffff
call fcn.005b9b20
jmp 0x58b33f
call fcn.0058a700
jmp 0x58b33d
mov dword [esp + 0x14], 1
jmp 0x58b35d
test ebp, ebp
setne cl
push edi
push ecx
mov ecx, esi
call fcn.00585fa0
jmp 0x58b33d
lea edx, [esp + 0x14]
push edx
push edi
push ebp
call fcn.00585a70
jmp 0x58b33d
cmp ebx, 0x2b
mov eax, dword [esi]
push edi
push ebp
jne 0x58aa2e
mov edx, dword [eax + 0x27c]
jmp 0x58aa34
mov edx, dword [eax + 0x280]
call edx
mov bl, al
test bl, bl
je 0x58b343
mov dword [esp + 0x14], 1
jmp 0x58b33f
cmp dword [esi + 0x118], 0
je 0x58aa67
mov eax, dword [esi + 0xcc]
shr eax, 0x12
test al, 1
je case.0x58b2fd.784
mov ecx, dword [esi + 0xcc]
shr ecx, 0x12
test cl, 1
mov dword [esp + 0x14], 0x80
je 0x58b35d
mov dword [esp + 0x14], 0x87
jmp 0x58b35d
call fcn.00586330
jmp 0x58b33d
call fcn.005863c0
jmp 0x58b33d
mov edx, dword [esi]
mov eax, dword [edx + 0x284]
push edi
push ebp
call eax
jmp 0x58b33d
push ebp
call fcn.0058a3c0
jmp 0x58aa36
lea ecx, [esp + 0x14]
push ecx
push edi
mov ecx, esi
call fcn.00585ac0
jmp 0x58b33d
test ebp, ebp
setne dl
push edi
push edx
call fcn.00585b90
jmp 0x58b33d
push edi
call fcn.00587090
jmp 0x58b33d
mov eax, edi
shr eax, 0x10
push eax
push edi
push ebp
call fcn.00588e30
jmp 0x58aa36
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x58ab67
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
push 0
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [0x84e304]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x78]
call fcn.005838e0
mov dword [esp + 0x70], esi
mov esi, dword [esi + 0x5c]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov dword [esp + 0x2d0], 1
call edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.00583980
jmp 0x58b35d
cmp eax, 2
jne case.0x58b2fd.784
mov eax, dword [edi + 8]
mov ecx, dword [0x84e304]
push 0
push 0x823330
push eax
push ecx
lea ecx, [esp + 0x78]
call fcn.005838e0
mov dword [esp + 0x70], esi
mov esi, dword [esi + 0x5c]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov dword [esp + 0x2d0], 2
call edx
lea ecx, [esp + 0x68]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.00583980
jmp 0x58b35d
mov ecx, edi
shr ecx, 0x10
movsx edx, cx
movsx eax, di
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x28], edx
mov edx, dword [0x84e29c]
push eax
push edx
lea ecx, [esp + 0x74]
call fcn.00583a10
cmp ebp, dword [esi + 0x114]
mov dword [esp + 0x2cc], 3
je 0x58ac11
push 0
push ebp
mov ecx, esi
call fcn.00584190
test eax, eax
jne 0x58ac13
mov eax, esi
mov dword [esp + 0x70], eax
mov eax, dword [eax + 0x5c]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x68]
push ecx
mov ecx, eax
call edx
lea ecx, [esp + 0x68]
mov bl, al
mov dword [esp + 0x2cc], 0xffffffff
call fcn.0040ad82
jmp 0x58b33f
call fcn.00582690
test eax, eax
mov dword [esp + 0x20], eax
je case.0x58b2fd.784
mov ecx, esi
call fcn.0057d2b0
call fcn.005826e0
cmp eax, 0x10000000
jne case.0x58b2fd.784
mov edi, dword [esp + 0x2dc]
mov ebp, dword [esp + 0x2d8]
mov eax, dword [esi]
mov edx, dword [eax + 0x28c]
push edi
push ebp
push ebx
mov ecx, esi
call edx
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
je 0x58acb7
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
jmp 0x58acd2
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov eax, dword [edi + 8]
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
push 0x75322c
push esi
lea ecx, [esp + 0x24]
call fcn.00583ff0
push esi
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x2d0], 4
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.005b9ca0
mov ecx, dword [esp + 0x2a4]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push 1
push 1
push ecx
mov ecx, dword [eax + 0x10]
push edx
mov byte [esp + 0x2e4], 5
call ecx
test eax, eax
jne 0x58ad90
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x40]
push edx
call dword [0x744714]
cmp ebp, ebx
je 0x58ad6d
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
jmp 0x58ad88
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [edi], eax
mov eax, dword [esp + 0x44]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [esp + 0x14], 0x300
lea ecx, [esp + 0x1bc]
mov byte [esp + 0x2cc], 4
call fcn.005b9830
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.005826c0
jmp 0x58b35d
call fcn.00582690
test eax, eax
mov dword [esp + 0x20], eax
je case.0x58b2fd.784
mov ecx, esi
call fcn.0057d2b0
call fcn.005826e0
cmp eax, 0x10000000
jne case.0x58b2fd.784
mov eax, dword [esp + 0x2dc]
mov ecx, dword [esp + 0x2d8]
mov edx, dword [esi]
mov edx, dword [edx + 0x28c]
push eax
push ecx
push ebx
mov ecx, esi
call edx
push 0x75322c
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
call fcn.00583ff0
mov ebx, 6
push esi
lea ecx, [esp + 0xc0]
mov dword [esp + 0x2d0], ebx
call fcn.005b9c00
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
mov byte [esp + 0x2d0], 7
call fcn.004072c2
push eax
lea ecx, [esp + 0x2c]
call fcn.0057cd80
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.005830e0
mov edx, dword [esp + 0x1ac]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
add esp, 8
lea eax, [esp + 0x48]
push eax
mov eax, dword [edi + 0x10]
lea ecx, [esp + 0x5c]
push ecx
push 1
push 1
push edx
push ebp
call eax
push 0xffffffffffffffff
push 0xffffffffffffffff
lea ecx, [esp + 0x50]
push ecx
call dword [0x744714]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x1ac]
push ecx
push edx
push eax
call dword [0x7440d4]
mov ecx, dword [edi + 0x38]
push 1
push 1
push ebp
call ecx
test eax, eax
je 0x58aee0
mov ecx, dword [esp + 0x1a4]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x58]
push edx
mov edx, dword [edi + 0xb4]
push ecx
push eax
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0xa4]
mov ecx, esi
call edx
mov edx, dword [esp + 0x1a4]
neg al
push 0
lea ecx, [esp + 0x5c]
push ecx
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
push eax
mov eax, dword [edi + 8]
push 1
push edx
push ebp
call eax
lea ecx, [esp + 0xbc]
mov byte [esp + 0x2cc], bl
call fcn.005b6a40
lea ecx, [esp + 0x18]
mov dword [esp + 0x2cc], 0xffffffff
call fcn.005826c0
jmp 0x58b35d
cmp ebx, 0x200
ja 0x58b15c
je 0x58b142
lea eax, [ebx - 0x101]
cmp eax, 0x37
ja case.0x58b2fd.784
movzx ecx, byte [eax + 0x58b498]
jmp dword [ecx*4 + 0x58b474]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push ebp
mov ecx, esi
call fcn.005828f0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00587140
jmp 0x58b33d
movzx ebx, bp
push edi
push ebx
mov ecx, esi
call fcn.00589550
add al, al
xor al, byte [esi + 0x11c]
and al, 2
xor byte [esi + 0x11c], al
test byte [esi + 0x11c], 2
je 0x58afc5
mov bl, 1
jmp 0x58b006
lea eax, [ebp - 8]
cmp eax, 0xd6
ja case.0x58afd6.10
movzx edx, byte [eax + 0x58b4e0]
jmp dword [edx*4 + 0x58b4d0]
mov bl, 1
jmp 0x58b006
xor bl, bl
jmp 0x58b006
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x204
mov ecx, esi
call fcn.00587380
jmp 0x58b004
push 0
push edi
push ebx
mov ecx, esi
call fcn.00589460
mov bl, al
cmp dword [esp + 0x2d4], 0x104
je 0x58b343
jmp 0x58b33f
cmp ebp, 0x5d
mov ecx, esi
jne 0x58b038
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x205
call fcn.00587380
jmp 0x58b33d
movzx eax, bp
push edi
push eax
call fcn.005895f0
jmp 0x58b33d
mov al, byte [esi + 0x11c]
test al, 2
je 0x58b05e
and al, 0xfd
mov byte [esi + 0x11c], al
jmp 0x58b35d
push 1
movzx ecx, bp
push edi
push ecx
mov ecx, esi
call fcn.00589460
jmp 0x58b33d
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push ebp
mov ecx, esi
call fcn.00582920
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x274]
push eax
mov eax, dword [esp + 0x20]
push ecx
xor ecx, ecx
cmp ebx, 0x114
setne cl
push eax
lea ecx, [ecx*4 + 4]
push ecx
mov ecx, esi
call edx
jmp 0x58b33d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
mov ecx, esi
call fcn.00582950
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00586450
jmp 0x58b33d
push ebp
mov ecx, esi
call fcn.00586040
mov bl, al
test bl, bl
je 0x58b343
mov dword [esp + 0x14], 0
jmp 0x58b33f
mov edx, ebp
shr edx, 0x10
cmp edx, 0x10
jne case.0x58b2fd.784
movzx eax, bp
push edi
push eax
call fcn.006ca04e
add esp, 4
push eax
mov ecx, esi
call fcn.005876d0
cmp eax, 0xffffffff
je case.0x58b2fd.784
movzx eax, ax
or eax, 0x20000
jmp 0x58b359
mov ecx, edi
shr ecx, 0x10
movsx edx, cx
push ebp
movsx eax, di
push edx
push eax
mov ecx, esi
call fcn.00589100
jmp 0x58b33d
cmp ebx, 0x2a3
ja 0x58b2e9
je 0x58b2d9
lea eax, [ebx - 0x201]
cmp eax, 0x32
ja case.0x58b2fd.784
movzx ecx, byte [eax + 0x58b5d8]
jmp dword [ecx*4 + 0x58b5b8]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
sub edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
sub eax, ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
add edx, 1
add eax, 1
push ecx
mov ecx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.00586cf0
mov bl, al
test bl, bl
je 0x58b343
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [edi], eax
lea eax, [edx + eax - 1]
mov edx, dword [esp + 0x34]
mov dword [edi + 8], eax
lea eax, [edx + ecx - 1]
mov dword [edi + 4], ecx
mov dword [edi + 0xc], eax
jmp 0x58b33f
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
sub edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
sub eax, ecx
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x28]
add edx, 1
add eax, 1
push ecx
mov ecx, esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
call fcn.00586fa0
jmp 0x58b1bc
push edi
push ebp
mov ecx, esi
call fcn.005874b0
jmp 0x58b33d
mov ecx, edi
shr ecx, 0x10
movsx edx, cx
push ebp
movsx eax, di
push edx
push eax
push ebx
mov ecx, esi
call fcn.00587380
mov bl, al
test bl, bl
jne 0x58b35d
cmp dword [esi + 0x118], 0
jne 0x58b33f
cmp dword [esp + 0x2d4], 0x201
jne 0x58b33f
mov edx, dword [esi]
mov eax, dword [edx + 0xd0]
mov ecx, esi
call eax
test al, al
je 0x58b33f
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
jmp 0x58b33f
push edi
mov ecx, esi
call fcn.00586640
jmp 0x58b33d
push ebp
mov ecx, esi
call fcn.005860d0
jmp 0x58b33d
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
mov ecx, esi
call fcn.00588f90
mov bl, al
test bl, bl
je 0x58aa40
cmp byte [esp + 0x1c], 0
je 0x58aa40
mov dword [esp + 0x14], 0x424d5144
jmp 0x58b33f
test byte [esi + 0x11c], 1
je case.0x58b2fd.784
call fcn.005875c0
jmp case.0x58b2fd.784
lea eax, [ebx - 0x30f]
cmp eax, 0xa9
ja case.0x58b2fd.784
movzx edx, byte [eax + 0x58b624]
jmp dword [edx*4 + 0x58b60c]
push ebp
call fcn.00586a70
jmp 0x58b33d
mov eax, edi
shr eax, 0x10
movsx ecx, ax
push ebp
push ecx
movsx edx, di
push edx
push ebx
mov ecx, esi
call fcn.00587840
jmp 0x58b33d
movzx eax, bp
push edi
push eax
call fcn.00589700
jmp 0x58b33d
push ebp
call fcn.005864e0
jmp 0x58b33d
call fcn.00586740
mov bl, al
test bl, bl
jne 0x58b35d
mov ebx, dword [esp + 0x2d4]
mov edx, dword [esi]
mov eax, dword [edx + 0x28c]
push edi
push ebp
push ebx
mov ecx, esi
call eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2bc
ret 0xc