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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x4c], 0xffffffff
mov edi, dword [ebx + 8]
mov esi, dword [ebx]
mov dword [esp + 0x18], 0
mov dword [esp + 0x40], 1
movzx eax, byte [edi + 0x10]
mov dword [esp + 0x54], edi
mov dword [esp + 0x34], esi
lea ecx, [eax + eax*8]
mov eax, dword [esi + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
je 0x598368
mov ebx, dword [edx + 0x44]
jmp 0x598418
test byte [ecx + 0x1c], 0x80
je 0x598376
mov ebx, dword [ecx + 8]
jmp 0x598418
lea eax, [esp + 0x4c]
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], eax
xorps xmm0, xmm0
lea eax, [esp + 0x48]
movlpd qword [esp + 0x97], xmm0
mov dword [esp + 0x68], eax
mov eax, 3
or dword [esp + 0x98], eax
mov word [esp + 0x90], ax
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x9f], xmm0
mov byte [esp + 0xa7], 0
mov dword [esp + 0x92], 0x10001
mov byte [esp + 0x96], 5
mov dword [esp + 0x6c], ecx
mov ax, word [ecx + 0x26]
mov word [esp + 0x48], ax
xor eax, eax
mov word [esp + 0x4a], ax
test byte [edx + 0x28], 1
jne 0x598414
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x74], eax
lea ebx, [esp + 0x60]
mov eax, ecx
mov dword [esp + 0x1c], ebx
mov ecx, 0x1c
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x44], ecx
cmp dword [eax + 0xc], 0
jne 0x598593
mov eax, 0x1020
test word [esi + 0x28], ax
jne 0x598593
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x598593
test byte [edx + 0x28], 0x4b
jne 0x598593
test byte [ecx], 0x80
jne 0x598593
test byte [edx + 0x24], 0x10
jne 0x598593
mov eax, dword [esp + 0x3c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
movzx eax, word [eax + 0x26]
push eax
mov dword [esp + 0x14], eax
call fcn.004e8920
movzx eax, ax
add esp, 4
mov dword [esp + 0x20], eax
nop dword [eax]
cmp esi, dword [esp + 0x24]
jae 0x59858f
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x598579
push ecx
push ecx
push dword [esp + 0x1c]
push esi
call fcn.0058b930
add esp, 0x10
test eax, eax
je 0x598579
mov eax, dword [edi + 0x38]
mov ecx, 1
mov edx, dword [esp + 0x38]
mov word [edi + 0x18], cx
mov dword [edi + 0x30], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], 0
mov dword [eax], esi
mov eax, dword [esp + 0x10]
add eax, ecx
mov word [edi + 0x12], ax
cmp byte [edx + 0x2b], 2
je 0x598526
mov edx, dword [esp + 0x44]
test dword [edx], 0x4000
jne 0x598526
add eax, 0x1c
jmp 0x598529
add eax, 0xffffffe7
movzx eax, ax
mov word [edi + 0x12], ax
test ax, ax
jns 0x59853b
xor eax, eax
mov word [edi + 0x12], ax
mov eax, 0x2b
push eax
push ecx
mov word [edi + 0x16], ax
call fcn.00557500
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x14], ax
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x2c], 0x4000
or ecx, dword [esi + 0x20]
or eax, dword [esi + 0x24]
push edi
push dword [ebp + 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
call fcn.0059a560
add esp, 0x10
mov dword [esp + 0x18], eax
jmp 0x59857d
mov eax, dword [esp + 0x18]
add esi, 0x30
test eax, eax
je 0x5984b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
test ebx, ebx
je 0x5989d2
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x5985c3
push eax
push dword [esp + 0x40]
movzx eax, byte [edx + 0x24]
push eax
push dword [edx + 0x2c]
call fcn.0059d0c0
add esp, 0x10
test eax, eax
je 0x5989a4
test dword [ebx + 0x38], 0x200
jne 0x5989a4
mov eax, dword [ebx + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [edi + 0x18], ecx
mov word [edi + 0x1c], cx
mov dword [edi + 0x30], ecx
mov byte [edi + 0x11], cl
mov word [edi + 0x12], cx
mov ecx, dword [ebp + 0xc]
mov word [edi + 0x16], ax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], ecx
mov dword [edi + 0x20], ebx
push dword [eax + 0x2c]
push ebx
push dword [ebp + 8]
call fcn.00510320
mov edx, dword [ebx + 0x38]
add esp, 0xc
mov ecx, edx
mov esi, eax
and ecx, 3
mov dword [esp + 0x24], esi
cmp cl, 3
jne 0x598670
mov eax, dword [esp + 0x40]
xor edx, edx
test esi, esi
movzx ecx, al
mov esi, dword [esp + 0x20]
push esi
push edi
push dword [esp + 0x44]
cmovne edx, ecx
mov dword [edi + 0x2c], 0x100
lea eax, [esi + 0x10]
mov byte [edi + 0x11], dl
mov word [edi + 0x14], ax
call fcn.0059a810
push edi
push dword [ebp + 8]
call fcn.0059a560
add esp, 0x14
mov word [edi + 0x16], si
test eax, eax
jne 0x5989d2
jmp 0x598977
test dl, 0x20
je 0x59868f
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x598739
mov edx, dword [esp + 0x14]
mov esi, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x24]
and ecx, dword [edx + 0x3c]
and esi, dword [edx + 0x38]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x5986db
push 0
push 0
lea ecx, [esp + 0x30]
push ecx
push eax
mov eax, dword [esp + 0x44]
push ebx
push dword [eax]
call fcn.0059af60
mov ecx, dword [esp + 0x44]
add esp, 0x18
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [edi + 0x2c], 0x200
test esi, esi
jne 0x5986ee
cmp ecx, 0x80000000
je 0x598705
mov eax, dword [ebx + 0x38]
test eax, 0x1000
je 0x598733
test eax, 0x800
jne 0x598733
mov eax, esi
or eax, ecx
je 0x598739
push dword [edx + 0x2c]
push ebx
push dword [esp + 0x3c]
call fcn.00597e30
add esp, 0xc
test eax, eax
je 0x598725
or dword [edi + 0x2c], eax
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
jmp 0x598740
mov eax, esi
or eax, ecx
jne 0x598740
mov dword [edi + 0x2c], 0x240
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x5987ae
mov eax, dword [esp + 0x44]
test byte [eax], 0x80
jne 0x5987ae
cmp dword [ebx + 0x24], edx
jne 0x5987ae
mov eax, dword [esp + 0x14]
test byte [eax + 0x28], 2
jne 0x5987ae
mov eax, esi
or eax, ecx
jne 0x598977
test byte [ebx + 0x38], 4
jne 0x598977
mov ecx, dword [esp + 0x38]
mov ax, word [ebx + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x598977
mov eax, dword [esp + 0x34]
test byte [eax + 0x28], 4
jne 0x598977
cmp byte [0x635d27], dl
je 0x598977
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x598977
mov eax, dword [esp + 0x40]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [edi + 0x11], cl
movsx ecx, word [ebx + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x38]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x20]
inc eax
add eax, ecx
or esi, dword [esp + 0x10]
mov word [edi + 0x14], ax
je 0x598939
lea eax, [ecx + 0x10]
xor ecx, ecx
movzx esi, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x34]
cmp dword [eax + 0x5c], ecx
jle 0x5988cd
mov edi, dword [esp + 0x1c]
xor edx, edx
mov dword [esp + 0x24], edx
nop dword [eax + eax]
mov ebx, dword [eax + 0x68]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x50]
add ebx, edx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx]
mov dword [esp + 0xac], 0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0x58], edi
mov dword [esp + 0xb0], 0x4ebb20
test eax, eax
je 0x59888a
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00581150
mov ecx, dword [esp + 0x18]
add esp, 8
mov edx, dword [esp + 0x24]
cmp word [esp + 0xc0], 0
jne 0x5988c5
movzx eax, word [ebx + 8]
test ax, ax
jg 0x5988a2
add esi, eax
jmp 0x5988ac
dec esi
test byte [ebx + 0xc], 0x82
je 0x5988ac
sub esi, 0x13
mov eax, dword [esp + 0x34]
inc ecx
add edx, 0x30
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
cmp ecx, dword [eax + 0x5c]
jl 0x598820
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x1c]
movzx eax, word [edi + 0x14]
movsx ecx, ax
movsx edx, si
cmp ax, si
jl 0x598909
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x5988e9
movzx eax, word [edi + 0x14]
jmp 0x598931
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x5988f7
movzx eax, word [edi + 0x14]
inc eax
jmp 0x59892e
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
movzx ecx, word [edi + 0x14]
add ax, cx
jmp 0x59892e
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x598915
movzx eax, si
jmp 0x598931
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x598922
inc esi
movzx eax, si
jmp 0x598931
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx eax, ax
mov ecx, dword [esp + 0x20]
mov word [edi + 0x14], ax
push ecx
push edi
push dword [esp + 0x44]
call fcn.0059a810
mov eax, dword [esp + 0x20]
add esp, 0xc
test byte [eax + 0x24], 0x10
je 0x598957
cmp dword [ebx + 0x28], 0
jne 0x598967
push edi
push dword [ebp + 8]
call fcn.0059a560
add esp, 8
mov ecx, eax
jmp 0x59896b
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
mov word [edi + 0x16], ax
test ecx, ecx
jne 0x5989d0
mov esi, dword [ebp + 8]
push 0
push ebx
push dword [esp + 0x1c]
mov byte [esi + 0x10], 0
push esi
call fcn.005989e0
add esp, 0x10
mov dword [esp + 0x18], eax
cmp byte [esi + 0x10], 1
jne 0x5989a8
mov ecx, dword [esp + 0x44]
or dword [ecx], 0x100
jmp 0x5989a8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
test byte [edx + 0x28], 2
je 0x5989b6
xor ebx, ebx
jmp 0x5989b9
mov ebx, dword [ebx + 0x14]
inc dword [esp + 0x40]
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x598597
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret