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

Disassembly:
mov eax, 0x11c8
call fcn.0059c1d0
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0x11c4], eax
mov eax, dword [esp + 0x11cc]
or ecx, 0xffffffff
mov edx, dword [esp + 0x11d4]
push ebx
mov ebx, dword [esp + 0x11e0]
push ebp
push esi
push edi
mov edi, dword [esp + 0x11e8]
or ebp, 0xffffffff
xor esi, esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x34], 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
test edi, edi
jne 0x58bcc7
test edx, edx
je 0x58ca0e
mov dword [edx], 0x63
jmp 0x58ca0e
mov dword [edi], esi
test edx, edx
je 0x58bccf
mov dword [edx], esi
test ebx, ebx
jne 0x58bcdf
mov esi, 0x10
mov edx, esi
jmp 0x58c9e2
mov eax, dword [esp + 0x11f0]
mov edi, 0x78b360
test eax, eax
mov dword [ebx], esi
mov ebx, dword [esp + 0x11e0]
cmovne edi, eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x5c], edi
lea eax, [edi + 0x100]
mov dword [esp + 0x60], eax
lea eax, [edi + 0x200]
mov dword [esp + 0x64], eax
lea eax, [edi + 0x340]
mov dword [esp + 0x68], eax
test ebx, 0xd8008580
je 0x58bd31
mov esi, 0x11
jmp 0x58c9c9
mov eax, dword [esp + 0x1c]
mov edx, ebx
and edx, 0x10000
mov dword [esp + 0xc0], esi
mov dword [esp + 0x28], edx
cmp byte [eax], 0x28
jne 0x58c0a0
cmp byte [eax + esi + 1], 0x2a
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ebp
jne 0x58c08d
lea edi, [eax + 2]
push 5
add edi, esi
push str.UTF8_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bd8b
add esi, 7
or ebx, 0x800
jmp 0x58c06a
push 4
push str.UTF_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bdad
add esi, 6
or ebx, 0x800
jmp 0x58c06a
push 4
push str.UCP_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bdcf
add esi, 6
or ebx, 0x20000000
jmp 0x58c06a
push 0x10
push str.NO_AUTO_POSSESS_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bdf1
add esi, 0x12
or ebx, 0x20000
jmp 0x58c06a
push 0xd
push str.NO_START_OPT_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58be13
add esi, 0xf
or ebx, 0x4000000
jmp 0x58c06a
push 0xc
push str.LIMIT_MATCH
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bebc
mov ebp, dword [esp + 0x1c]
lea ebx, [esi + 0xe]
add ebp, ebx
xor edi, edi
movzx eax, byte [ebp]
push eax
call fcn.005a6f50
add esp, 4
test eax, eax
je 0x58be7e
mov esi, dword [esp + 0x1c]
nop dword [eax + eax]
cmp edi, 0x19999998
ja 0x58be7a
movzx eax, byte [ebp]
lea ecx, [edi - 6]
inc ebx
lea ecx, [edi + ecx*4]
lea ebp, [esi + ebx]
lea edi, [eax + ecx*2]
movzx eax, byte [ebp]
push eax
call fcn.005a6f50
add esp, 4
test eax, eax
jne 0x58be50
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ebx]
cmp al, 0x29
jne 0x58c089
cmp edi, dword [esp + 0x20]
jae 0x58be9e
or dword [esp + 0xc0], 0x2000
cmp edi, dword [esp + 0x3c]
lea esi, [ebx + 1]
mov ebx, dword [esp + 0x11e0]
mov ebp, edi
cmovae ebp, dword [esp + 0x3c]
mov dword [esp + 0x20], ebp
jmp 0x58c071
push 0x10
push str.LIMIT_RECURSION
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bf64
mov ebp, dword [esp + 0x1c]
lea ebx, [esi + 0x12]
add ebp, ebx
xor edi, edi
movzx eax, byte [ebp]
push eax
call fcn.005a6f50
add esp, 4
test eax, eax
je 0x58bf22
mov esi, dword [esp + 0x1c]
cmp edi, 0x19999998
ja 0x58bf1e
movzx eax, byte [ebp]
lea ecx, [edi - 6]
inc ebx
lea ecx, [edi + ecx*4]
lea ebp, [esi + ebx]
lea edi, [eax + ecx*2]
movzx eax, byte [ebp]
push eax
call fcn.005a6f50
add esp, 4
test eax, eax
jne 0x58bef4
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov al, byte [eax + ebx]
cmp al, 0x29
jne 0x58c089
cmp edi, dword [esp + 0x10]
jae 0x58bf42
or dword [esp + 0xc0], 0x4000
cmp edi, dword [esp + 0x30]
lea esi, [ebx + 1]
mov ebx, dword [esp + 0x11e0]
mov ecx, edi
cmovae ecx, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
jmp 0x58c075
push 3
push 0x78a924
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bf8d
mov eax, 0x100000
and ebx, 0xff8fffff
add esi, 5
or ebx, eax
jmp 0x58c06a
push 3
push 0x78a928
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bfb6
mov eax, 0x200000
and ebx, 0xff8fffff
add esi, 5
or ebx, eax
jmp 0x58c06a
push 5
push str.CRLF_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58bfdf
mov eax, 0x300000
and ebx, 0xff8fffff
add esi, 7
or ebx, eax
jmp 0x58c06a
push 4
push str.ANY_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58c005
mov eax, 0x400000
and ebx, 0xff8fffff
add esi, 6
or ebx, eax
jmp 0x58c06a
push 8
push str.ANYCRLF_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58c02b
mov eax, 0x500000
and ebx, 0xff8fffff
add esi, 0xa
or ebx, eax
jmp 0x58c06a
push 0xc
push str.BSR_ANYCRLF_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58c046
mov eax, 0x800000
jmp 0x58c05f
push 0xc
push str.BSR_UNICODE_
push edi
call fcn.005a47e0
add esp, 0xc
test eax, eax
jne 0x58c089
mov eax, 0x1000000
and ebx, 0xfe7fffff
or ebx, eax
add esi, 0xe
mov dword [esp + 0x11e0], ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
cmp byte [eax + esi], 0x28
je 0x58bd51
jmp 0x58c08d
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x11e0]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebx
shr ecx, 0xb
and ecx, 1
mov dword [esp + 0x14], ecx
je 0x58c0e9
test edx, edx
je 0x58c0be
mov esi, 0x4e
mov edx, esi
jmp 0x58c9e2
test ebx, 0x2000
jne 0x58c0e9
push dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call fcn.0059af90
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x58c0e9
mov esi, 0x2c
mov edx, esi
jmp 0x58c9e2
mov eax, ebx
and eax, 0x1800000
cmp eax, 0x1800000
je 0x58c9c4
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x58c168
je 0x58c146
test eax, eax
je 0x58c121
cmp eax, 0x100000
je 0x58c142
cmp eax, 0x200000
jne 0x58c9c4
mov al, 0xa
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 1
mov byte [esp + 0xe0], al
jmp 0x58c192
mov al, 0xd
jmp 0x58c123
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 2
mov word [esp + 0xe0], 0xa0d
jmp 0x58c192
cmp eax, 0x400000
je 0x58c187
cmp eax, 0x500000
jne 0x58c9c4
mov dword [esp + 0xd8], 2
jmp 0x58c192
mov dword [esp + 0xd8], 1
lea eax, [esp + 0x1d4]
mov dword [esp + 0xa8], 0
mov dword [esp + 0x70], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x6c], eax
lea eax, [esp + 0xe4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov dword [esp + 0xac], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0x8c], 0
lea edx, [ecx + 1]
mov dword [esp + 0x90], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0xd4], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0x98], 0x1000
mov dword [esp + 0x94], 0x14
mov dword [esp + 0x74], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58c240
sub ecx, edx
mov dword [esp + 0xc4], 0
mov edx, dword [esp + 0x1c]
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xa4], 0
lea eax, [ecx + edx]
mov dword [esp + 0xbc], ebx
mov dword [esp + 0x78], eax
lea eax, [edx + esi]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1d4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0x84], 0
push eax
push 0
lea eax, [esp + 0x34]
mov byte [esp + 0x1e0], 0x83
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
push ebx
call fcn.0058a280
mov esi, dword [esp + 0x54]
add esp, 0x3c
test esi, esi
jne 0x58c9c9
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x30], ecx
cmp ecx, 0x10000
jle 0x58c316
mov esi, 0x14
jmp 0x58c9c9
cmp dword [esp + 0xd4], 0
je 0x58c332
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x58c332
lea ecx, [ecx + eax*2]
mov dword [esp + 0x30], ecx
mov esi, dword [esp + 0x90]
imul esi, dword [esp + 0x8c]
add esi, 0x38
add esi, ecx
push esi
call dword [0x8a3924]
mov edx, eax
add esp, 4
mov dword [esp + 0x34], edx
test edx, edx
jne 0x58c362
lea esi, [eax + 0x15]
jmp 0x58c9c9
mov dword [edx], 0x50435245
xorps xmm0, xmm0
mov dword [edx + 4], esi
mov eax, dword [esp + 0xbc]
mov dword [edx + 8], eax
mov eax, dword [esp + 0xc0]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x14], eax
xor eax, eax
mov dword [edx + 0x18], eax
mov eax, 0x38
mov word [edx + 0x22], ax
mov dword [edx + 0x10], ebp
movzx eax, word [esp + 0x90]
mov word [edx + 0x24], ax
movzx eax, word [esp + 0x8c]
mov word [edx + 0x26], ax
xor eax, eax
mov dword [edx + 0x28], eax
cmp edi, 0x78b360
mov dword [edx + 0x34], eax
mov dword [edx + 0x2c], eax
cmove edi, eax
mov dword [edx + 0x30], edi
mov eax, dword [esp + 0x9c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa4], 0
movzx ebp, word [edx + 0x22]
add ebp, edx
mov dword [esp + 0x88], ebp
movzx ecx, word [edx + 0x24]
movzx eax, word [edx + 0x26]
mov edx, dword [esp + 0x8c]
imul eax, ecx
movups xmmword [esp + 0xc4], xmm0
mov dword [esp + 0x80], 0
mov dword [esp + 0x48], edx
add eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
test edx, edx
jle 0x58c5d6
xor edi, edi
mov dword [esp + 0x8c], edi
test edx, edx
jle 0x58c5bc
mov ebx, dword [esp + 0x84]
xor ecx, ecx
add ebx, 4
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [esp + 0x50], eax
mov eax, dword [ebx - 4]
mov dword [esp + 0x44], eax
xor eax, eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
test ecx, ecx
jle 0x58c563
mov edx, dword [esp + 0x44]
lea eax, [ebp + 2]
sub esi, 4
jb 0x58c4b1
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x58c4b6
add edx, 4
add eax, 4
sub esi, 4
jae 0x58c4a0
cmp esi, 0xfffffffc
je 0x58c4ea
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x58c4e3
cmp esi, 0xfffffffd
je 0x58c4ea
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x58c4e3
cmp esi, 0xfffffffe
je 0x58c4ea
mov cl, byte [edx + 2]
cmp cl, byte [eax + 2]
jne 0x58c4e3
cmp esi, 0xffffffff
je 0x58c4ea
mov cl, byte [edx + 3]
cmp cl, byte [eax + 3]
je 0x58c4ea
sbb eax, eax
or eax, 1
jmp 0x58c4ec
xor eax, eax
mov esi, dword [esp + 0x20]
test eax, eax
jne 0x58c533
cmp byte [esi + ebp + 2], al
je 0x58c535
mov eax, dword [esp + 0x90]
mov edx, ebp
sub edi, dword [esp + 0x24]
imul edi, eax
lea ecx, [eax + ebp]
cmp ecx, ebp
jbe 0x58c54f
add ecx, edi
lea edx, [edi + ebp]
test edi, edi
je 0x58c563
nop word [eax + eax]
mov al, byte [edx - 1]
lea edx, [edx - 1]
mov byte [ecx - 1], al
lea ecx, [ecx - 1]
sub edi, 1
jne 0x58c520
jmp 0x58c563
js 0x58c4fa
mov eax, dword [esp + 0x24]
add ebp, dword [esp + 0x90]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edi
jl 0x58c492
jmp 0x58c563
test edi, edi
je 0x58c563
mov al, byte [edx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
lea edx, [edx + 1]
sub edi, 1
jne 0x58c553
mov ecx, dword [esp + 0x50]
mov eax, ecx
shr eax, 8
push esi
push dword [esp + 0x48]
mov byte [ebp], al
lea eax, [ebp + 2]
push eax
mov byte [ebp + 1], cl
call fcn.0059ce60
mov edx, dword [esp + 0x54]
add esp, 0xc
mov byte [esi + ebp + 2], 0
dec edx
mov edi, dword [esp + 0x8c]
add ebx, 0xc
inc edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x8c], edi
mov ecx, edi
test edx, edx
jle 0x58c5b5
mov ebp, dword [esp + 0x88]
jmp 0x58c470
mov ebx, dword [esp + 0x11e0]
cmp dword [esp + 0x94], 0x14
jle 0x58c5d6
push dword [esp + 0x84]
call dword [0x8a3928]
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x38]
mov byte [eax], 0x83
lea eax, [esp + 0x60]
push eax
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x54]
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x54]
push eax
push dword [esi + 8]
call fcn.0058a280
movzx eax, word [esp + 0xd8]
add esp, 0x3c
mov word [esi + 0x1e], ax
movzx eax, word [esp + 0xa8]
mov word [esi + 0x20], ax
movzx eax, word [esp + 0xa4]
mov word [esi + 0x1c], ax
mov eax, dword [esp + 0xc0]
or eax, 1
mov dword [esi + 0xc], eax
cmp dword [esp + 0xc8], 0
je 0x58c678
or eax, 0xffffffff
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
jmp 0x58c688
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x58c6a2
mov eax, dword [esp + 0x24]
mov edx, 0x16
cmp byte [eax], cl
cmovne ecx, edx
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x20]
mov ecx, 0x17
mov byte [eax], 0
inc eax
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
sub eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x30]
mov eax, dword [esp + 0x7c]
cmovg esi, ecx
mov dword [esp + 0x18], esi
cmp eax, ebp
jbe 0x58c75a
or ecx, 0xffffffff
xor edx, edx
mov dword [esp + 0x30], ecx
test esi, esi
jne 0x58c75a
cmp eax, ebp
jbe 0x58c75a
sub eax, 2
mov dword [esp + 0x7c], eax
movzx edi, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or edi, eax
add edi, dword [esp + 0x10]
movzx esi, byte [edi]
movzx eax, byte [edi + 1]
shl esi, 8
or esi, eax
cmp esi, dword [esp + 0x30]
je 0x58c727
push esi
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00583c30
add esp, 0xc
mov dword [esp + 0x30], esi
mov edx, eax
test edx, edx
je 0x58c751
mov ecx, edx
mov al, dl
sub ecx, dword [esp + 0x10]
sub al, byte [esp + 0x10]
sar ecx, 8
mov byte [edi], cl
mov byte [edi + 1], al
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x6c]
test esi, esi
jne 0x58c75a
mov eax, dword [esp + 0x7c]
jmp 0x58c6e3
mov esi, 0x35
mov dword [esp + 0x18], esi
cmp dword [esp + 0x98], 0x1000
jle 0x58c775
push ebp
call dword [0x8a3928]
mov esi, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x6c], 0
test esi, esi
jne 0x58c799
mov ax, word [ebp + 0x20]
mov ecx, 0xf
cmp ax, word [ebp + 0x1e]
cmova esi, ecx
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x14]
test ebx, 0x20000
mov ebx, dword [esp + 0x10]
jne 0x58c7bc
lea eax, [esp + 0x5c]
push eax
push edi
push ebx
call fcn.00584580
mov esi, dword [esp + 0x24]
add esp, 0xc
cmp dword [esp + 0xd0], 0
je 0x58c860
push 0xffffffffffffffff
push edi
push ebx
call fcn.00583c30
mov edi, eax
add esp, 0xc
test edi, edi
je 0x58c860
movzx ecx, byte [edi + 1]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
jne 0x58c844
movzx esi, byte [edi - 2]
movzx eax, byte [edi - 1]
shl esi, 8
or esi, eax
lea eax, [esp + 0x5c]
push eax
push 1
mov bl, byte [esi + edi - 3]
mov byte [esi + edi - 3], cl
mov eax, dword [ebp + 8]
shr eax, 0xb
and eax, 1
push eax
push edi
call fcn.0058ad90
mov edx, eax
mov byte [esi + edi - 3], bl
add esp, 0x10
test edx, edx
js 0x58c877
mov ecx, dword [esp + 0xa4]
cmp edx, ecx
cmovg ecx, edx
sar eax, 8
mov dword [esp + 0xa4], ecx
mov byte [edi + 1], al
mov byte [edi + 2], dl
push 0xffffffffffffffff
push dword [esp + 0x18]
lea eax, [edi + 3]
push eax
call fcn.00583c30
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x58c7e0
mov esi, dword [esp + 0x18]
test esi, esi
je 0x58c8ad
push ebp
call dword [0x8a3928]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x58c9c9
cmp edx, 0xfffffffe
jne 0x58c897
push ebp
mov dword [esp + 0x1c], 0x24
call dword [0x8a3928]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x58c9c9
cmp edx, 0xfffffffc
mov esi, 0x19
mov eax, 0x46
cmove esi, eax
mov dword [esp + 0x18], esi
jmp 0x58c860
mov ebx, dword [ebp + 8]
test bl, 0x10
jne 0x58c945
push 0
lea eax, [esp + 0x60]
push eax
push 0
push dword [esp + 0x1c]
call fcn.0058b8e0
add esp, 0x10
test eax, eax
je 0x58c8da
or ebx, 0x10
mov dword [ebp + 8], ebx
jmp 0x58c945
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x58c91f
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push 0
push eax
push ebx
call fcn.0058ac00
mov ecx, eax
add esp, 0xc
mov eax, dword [esp + 0x38]
test eax, eax
jns 0x58c923
push 0
lea eax, [esp + 0x60]
push eax
push 0
push ebx
call fcn.0058ba90
add esp, 0x10
test eax, eax
je 0x58c945
or dword [ebp + 0xc], 0x100
jmp 0x58c945
mov ecx, dword [esp + 0x3c]
movzx edx, cl
mov word [ebp + 0x18], dx
test al, 1
je 0x58c941
mov eax, dword [esp + 0x60]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x58c941
or dword [ebp + 0xc], 0x20
or dword [ebp + 0xc], 0x10
mov eax, dword [esp + 0x28]
test eax, eax
js 0x58c980
test byte [ebp + 8], 0x10
je 0x58c957
test al, 2
je 0x58c980
mov ecx, dword [esp + 0x2c]
movzx edx, cl
mov word [ebp + 0x1a], dx
test al, 1
je 0x58c97c
mov eax, dword [esp + 0x60]
mov ecx, edx
movzx eax, byte [ecx + eax]
cmp ax, dx
je 0x58c97c
or dword [ebp + 0xc], 0x80
or dword [ebp + 0xc], 0x40
mov esi, dword [esp + 0x40]
mov ebx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x1c]
push esi
push ebx
call fcn.0058a710
add esp, 0x14
test eax, eax
jne 0x58c9b9
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
add ebx, ecx
cmp byte [ebx], 0x77
je 0x58c988
mov eax, ebp
jmp 0x58ca10
or dword [ebp + 0xc], 0x8000
mov eax, ebp
jmp 0x58ca10
mov esi, 0x38
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov edx, esi
mov ecx, str.no_error
test edx, edx
jle 0x58c9fe
mov ecx, str.no_error
mov al, byte [ecx]
inc ecx
test al, al
jne 0x58c9e7
cmp byte [ecx], al
je 0x58c9f9
dec edx
test edx, edx
jg 0x58c9e7
jmp 0x58c9fe
mov ecx, str.Error_text_not_found__please_report_
mov eax, dword [esp + 0x54]
mov dword [eax], ecx
mov eax, dword [esp + 0x58]
test eax, eax
je 0x58ca0e
mov dword [eax], esi
xor eax, eax
mov ecx, dword [esp + 0x11d4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0059bb21
add esp, 0x11c8
ret