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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
mov ebx, edx
mov dword [esp + 0x1c], ecx
push esi
xorps xmm0, xmm0
mov dword [esp + 0x60], ebx
push edi
mov edx, dword [ebx]
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], 0
mov ecx, dword [edx]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], ecx
mov byte [esp + 0xf], 0
mov eax, dword [ecx]
mov dword [esp + 0x1c], eax
cmp byte [eax + 0x51], 0
jne 0x5f4f26
mov eax, dword [ebp + 8]
lea esi, [eax + eax*2]
shl esi, 4
lea eax, [edx + 0x1e8]
mov dword [esp + 0x14], esi
add esi, dword [ebx + 0x14]
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], eax
mov edi, dword [esi]
mov dword [esp + 0x60], edi
mov edx, dword [edi + 0xc]
test edx, edx
je 0x5f4320
mov ecx, eax
call fcn.005f5030
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], edx
jmp 0x5f4332
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov al, byte [edi]
mov byte [esp + 0xe], al
movzx eax, al
mov dword [esp + 0x50], eax
cmp eax, 0x31
jne 0x5f4375
mov edx, edi
call fcn.005bee40
test eax, eax
jne 0x5f4f26
test dword [edi + 4], 0x800
mov edx, dword [edi + 0x14]
mov ecx, dword [esp + 0x28]
je 0x5f436e
call fcn.005f4030
jmp 0x5f43b0
call fcn.005f5160
jmp 0x5f43b0
cmp eax, 0x32
jne 0x5f438d
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
jmp 0x5f43b0
mov edx, dword [edi + 0x10]
test edx, edx
je 0x5f439f
mov ecx, dword [esp + 0x28]
call fcn.005f5030
jmp 0x5f43b0
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x28]
mov ecx, eax
mov dword [esi + 0x24], edx
mov edx, edi
mov dword [eax], 0
call fcn.005f5030
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
cmp dword [ecx], 0
je 0x5f43e3
mov edx, 0x1000
or word [esi + 0xa], dx
test byte [edi + 4], 1
je 0x5f4448
movsx edx, word [edi + 0x24]
call fcn.005f54a0
or dword [esp + 0x30], edx
mov ecx, eax
mov eax, dword [esp + 0x2c]
or eax, ecx
mov dword [esp + 0x38], ecx
add dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], edx
adc dword [esp + 0x3c], 0xffffffff
shrd dword [esp + 0x18], eax, 1
shr eax, 1
cmp eax, edx
jb 0x5f445a
ja 0x5f4430
cmp dword [esp + 0x18], ecx
jb 0x5f445a
push 0x7e6cc8
push dword [esp + 0x14]
call fcn.0058bd80
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x38], ecx
jmp 0x5f445e
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x2c], eax
xor eax, eax
mov word [esi + 0xc], ax
mov al, byte [esp + 0xe]
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
cmp al, 0x31
je 0x5f45d0
cmp al, 0x35
jb 0x5f4494
cmp al, 0x39
jbe 0x5f45d0
cmp al, 0x32
je 0x5f45d0
cmp al, 0x2d
je 0x5f45d0
mov al, byte [edi]
cmp al, 0x30
jne 0x5f45a7
cmp byte [ebx + 8], 0x2c
jne 0x5f4f11
mov eax, dword [edi + 0x14]
add eax, 4
mov dword [esp + 0x44], 0
mov dword [esp + 0x54], eax
nop word [eax + eax]
mov edx, dword [eax]
test edx, edx
je 0x5f44ea
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.005bc580
add esp, 8
mov esi, eax
jmp 0x5f44ec
xor esi, esi
mov edx, dword [edi + 0xc]
test edx, edx
je 0x5f4505
mov ecx, dword [esp + 0x1c]
push 0
push 0
call fcn.005bc580
add esp, 8
jmp 0x5f4507
xor eax, eax
mov ecx, dword [esp + 0x10]
push esi
push eax
mov eax, dword [esp + 0x4c]
movzx edx, byte [eax + 0x7c2ecc]
call fcn.005bbf00
add esp, 8
test eax, eax
je 0x5f4535
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 3
mov edx, eax
mov ecx, ebx
call fcn.005f30c0
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov edx, ebx
push esi
call fcn.005f4290
mov ecx, dword [ebx + 0x14]
add esp, 4
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 8]
add edx, ecx
mov dword [esp + 0x20], edx
lea edx, [esi + esi*2]
mov esi, dword [esp + 0x14]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov ax, word [esi + ecx + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x44]
inc ecx
mov dword [esp + 0x44], ecx
inc byte [eax + esi + 0xe]
mov eax, dword [esp + 0x54]
add eax, 0x14
mov dword [esp + 0x54], eax
cmp ecx, 2
jl 0x5f44d0
jmp 0x5f48a5
cmp al, 0x2b
jne 0x5f48a9
push dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.005f3810
mov esi, dword [ebx + 0x14]
add esp, 4
add esi, dword [esp + 0x14]
mov dword [esp + 0x20], esi
jmp 0x5f48a9
mov edx, dword [edi + 0xc]
test edx, edx
je 0x5f45e7
test dword [edx + 4], 0x1000
je 0x5f45e7
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x5f45d7
mov eax, dword [edi + 0x10]
mov dword [esp + 0x18], eax
test eax, eax
je 0x5f4606
test dword [eax + 4], 0x1000
je 0x5f4602
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x5f45f2
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
and ecx, dword [esp + 0x40]
and eax, dword [esp + 0x44]
or ecx, eax
mov dword [esp + 0x54], 0x1fff
je 0x5f4628
mov dword [esp + 0x54], 0x800
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x5f4639
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x14]
mov edx, dword [eax + ecx*4 - 0x10]
push dword [esp + 0x50]
mov ecx, dword [esp + 0x28]
push edx
push dword [esp + 0x4c]
lea edx, [esp + 0x74]
push dword [esp + 0x4c]
call fcn.005f4200
mov edx, dword [esp + 0x60]
add esp, 0x10
test eax, eax
je 0x5f467c
mov eax, dword [esp + 0x68]
mov ecx, edx
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x1c], eax
call fcn.005f3220
and ax, word [esp + 0x54]
mov word [esi + 0xc], ax
cmp byte [esp + 0xe], 0x2d
mov eax, 0x800
jne 0x5f468c
or word [esi + 0xa], ax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5f48a9
mov ecx, dword [esp + 0x24]
push edx
push eax
push dword [esi + 0x24]
lea edx, [esp + 0x74]
push dword [esi + 0x20]
call fcn.005f4200
add esp, 0x10
test eax, eax
je 0x5f48a9
cmp dword [esi + 0x14], 0
mov dword [esp + 0x58], 0
jl 0x5f47ef
mov esi, dword [esp + 0x1c]
mov edx, edi
push 0
push 0
mov ecx, esi
call fcn.005bc580
add esp, 8
mov dword [esp + 0x18], eax
cmp byte [esi + 0x51], 0
je 0x5f4700
test eax, eax
je 0x5f4f26
mov edx, eax
mov ecx, esi
call fcn.005bc390
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 3
mov edx, eax
mov ecx, ebx
call fcn.005f30c0
add esp, 4
test eax, eax
je 0x5f4f26
mov ecx, dword [ebp + 8]
lea esi, [eax + eax*2]
shl esi, 4
mov edx, eax
add esi, dword [ebx + 0x14]
push ecx
mov ecx, ebx
mov dword [esp + 0x54], esi
call fcn.005f37e0
add esp, 4
cmp byte [esp + 0xe], 0x2d
jne 0x5f4743
mov eax, 0x800
or word [esi + 0xa], ax
mov esi, dword [ebx + 0x14]
add esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
or word [esi + 0xa], 8
mov eax, dword [ecx]
test byte [eax + 0x4c], 0x80
jne 0x5f47fb
mov eax, dword [esp + 0x18]
mov dl, byte [eax]
cmp dl, 0x35
je 0x5f4777
cmp dl, 0x2d
jne 0x5f47fb
test byte [eax + 4], 1
jne 0x5f47fb
mov ecx, dword [eax + 0xc]
call fcn.005bb0f0
mov ecx, dword [esp + 0x18]
mov byte [esp + 0xe], al
mov ecx, dword [ecx + 0x10]
call fcn.005bb0f0
mov cl, al
mov al, byte [esp + 0xe]
cmp al, cl
je 0x5f47ac
cmp al, 0x43
jl 0x5f47f7
cmp cl, 0x43
jl 0x5f47f7
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
call fcn.005bb540
test eax, eax
je 0x5f47e0
cmp dword [eax + 0xc], fcn.006059b0
je 0x5f47e0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push dword [eax + 0x10]
mov edx, dword [eax + 0xc]
call fcn.005bb430
add esp, 4
test eax, eax
je 0x5f47f7
mov eax, 0x800
or word [esi + 0xc], ax
mov dword [esp + 0x58], eax
jmp 0x5f47f7
mov dword [esp + 0x18], edi
mov dword [esp + 0x50], esi
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edx, dword [esi + 0xc]
cmp byte [edx], 0xae
je 0x5f4838
mov eax, dword [esi + 0x10]
cmp byte [eax], 0xae
je 0x5f4838
push eax
call fcn.005bb4f0
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
push dword [eax + 0xc]
mov edx, dword [eax + 0x10]
call fcn.005bb4f0
add esp, 4
cmp esi, eax
mov esi, dword [esp + 0x18]
je 0x5f483f
xor dword [esi + 4], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x10], eax
mov al, byte [esi]
mov dword [esi + 0xc], ecx
cmp al, 0x36
jb 0x5f4859
sub al, 0x36
xor al, 2
add al, 0x36
mov byte [esi], al
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x44]
or ecx, dword [esp + 0x3c]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x40]
or eax, dword [esp + 0x38]
mov dword [edx + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 0x24], ecx
mov dword [edx + 0x2c], eax
movzx ecx, byte [esi]
call fcn.005f3220
add ax, word [esp + 0x58]
and ax, word [esp + 0x54]
mov word [edx + 0xc], ax
mov esi, dword [esp + 0x20]
cmp byte [ebx + 8], 0x2c
jne 0x5f4f11
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x4c]
mov edx, edi
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005f3250
add esp, 0xc
test eax, eax
je 0x5f4b55
mov eax, dword [edi + 0x14]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x58], eax
test ecx, ecx
je 0x5f4906
push 0
mov edx, ecx
mov ecx, dword [esp + 0x20]
push 0
call fcn.005bc580
mov ecx, dword [esp + 0x3c]
add esp, 8
mov dword [esp + 0x44], eax
jmp 0x5f490e
mov dword [esp + 0x44], 0
cmp dword [esp + 0x4c], 0
je 0x5f4975
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp byte [eax + 0x51], 0
jne 0x5f4975
mov eax, 0x400
or word [esi + 0xa], ax
xor esi, esi
mov eax, dword [ecx + 8]
mov dword [esp + 0x54], eax
mov cl, byte [eax]
test cl, cl
je 0x5f4975
mov edi, dword [esp + 0x34]
mov ebx, eax
nop
movzx edx, cl
mov al, byte [edx + 0x7c3300]
and al, 0x20
not al
and al, cl
mov byte [ebx], al
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
mov al, byte [edx + 0x7c4050]
mov byte [esi + ecx], al
inc esi
mov ebx, dword [edi + 8]
add ebx, esi
mov cl, byte [ebx]
test cl, cl
jne 0x5f4940
mov edi, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x51], 0
jne 0x5f49d2
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
test edx, edx
jne 0x5f498e
xor ecx, ecx
jmp 0x5f49a2
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f4993
sub ecx, esi
and ecx, 0x3fffffff
mov al, byte [edx + ecx - 1]
add edx, ecx
cmp dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x48]
je 0x5f49c3
xor esi, esi
cmp al, 0x40
movzx eax, al
cmove ecx, esi
mov al, byte [eax + 0x7c4050]
inc al
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x1c]
mov byte [edx - 1], al
jmp 0x5f49da
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
cmp dword [esp + 0x4c], 0
mov eax, str.BINARY
mov esi, 0x7e6cf4
cmove esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x64], esi
test eax, eax
je 0x5f4a08
push 0
push 0
mov edx, eax
call fcn.005bc580
add esp, 8
jmp 0x5f4a0a
xor eax, eax
push dword [esp + 0x34]
mov edx, eax
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov ecx, esi
call fcn.005bb1e0
add esp, 8
mov edx, 0x39
mov ecx, esi
push eax
call fcn.005bbf00
add esp, 8
test eax, eax
je 0x5f4a45
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, ebx
call fcn.005f30c0
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, ebx
mov dword [esp + 0x60], eax
push eax
call fcn.005f4290
mov eax, dword [esp + 0x5c]
add esp, 4
test eax, eax
je 0x5f4a85
mov ecx, dword [esp + 0x1c]
mov edx, eax
push 0
push 0
call fcn.005bc580
add esp, 8
jmp 0x5f4a87
xor eax, eax
push dword [esp + 0x44]
mov edx, eax
push ecx
push dword [esp + 0x6c]
mov ecx, esi
call fcn.005bb1e0
add esp, 8
mov edx, 0x38
mov ecx, esi
push eax
call fcn.005bbf00
add esp, 8
test eax, eax
je 0x5f4ac1
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 0x103
mov edx, eax
mov ecx, ebx
call fcn.005f30c0
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, ebx
mov dword [esp + 0x64], eax
push eax
call fcn.005f4290
mov ecx, dword [ebx + 0x14]
add esp, 4
cmp dword [esp + 0x54], 0
mov eax, dword [esp + 0x14]
lea esi, [ecx + eax]
mov dword [esp + 0x20], esi
je 0x5f4b55
mov eax, dword [esp + 0x60]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 8]
add edx, edx
mov dword [ecx + edx*8 + 0x10], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
mov eax, dword [esp + 0x64]
mov ecx, dword [ebp + 8]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x14]
add edx, edx
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
movzx eax, word [ecx + eax + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
cmp byte [ebx + 8], 0x2c
jne 0x5f4f11
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
lea eax, [esp + 0x17]
mov dword [esp + 0x5c], 0
push eax
mov edx, edi
call fcn.005f3640
add esp, 0xc
test eax, eax
jle 0x5f4d6a
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x58], esi
mov dword [esp + 0x4c], ecx
dec eax
mov dword [esp + 0x64], eax
test esi, esi
je 0x5f4bc2
mov ecx, dword [esp + 0x28]
mov edx, esi
call fcn.005f5030
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x48], edx
jmp 0x5f4bd7
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x50], eax
test ecx, ecx
je 0x5f4bec
mov edx, ecx
mov ecx, dword [esp + 0x28]
call fcn.005f5030
jmp 0x5f4bfd
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x48]
or eax, edx
jne 0x5f4d4a
test esi, esi
je 0x5f4c27
mov ecx, dword [esp + 0x1c]
mov edx, esi
push eax
push eax
call fcn.005bc580
add esp, 8
mov dword [esp + 0x54], eax
jmp 0x5f4c2f
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x10]
push 0
push 0x34
mov ecx, dword [eax]
call fcn.00588ce0
mov esi, eax
add esp, 8
test esi, esi
je 0x5f4c93
push 0x34
push 0
push esi
call fcn.00738a30
or eax, 0xffffffff
mov byte [esi], 0x2e
add esp, 0xc
mov word [esi + 0x22], ax
mov eax, dword [esp + 0x10]
mov edx, esi
push dword [esp + 0x54]
mov ecx, dword [eax]
push 0
call fcn.005bbe90
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [ecx]
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x5f4ca8
push eax
push 0x7e3958
push ecx
call fcn.0058bd80
add esp, 0xc
jmp 0x5f4ca8
mov eax, dword [esp + 0x54]
test eax, eax
je 0x5f4ca8
mov edx, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
call fcn.005bc390
test byte [edi + 4], 1
je 0x5f4cbe
test esi, esi
je 0x5f4cbe
or dword [esi + 4], 1
mov ax, word [edi + 0x24]
mov word [esi + 0x24], ax
push 3
mov edx, esi
mov ecx, ebx
call fcn.005f30c0
mov esi, dword [ebx + 0x14]
add esp, 4
mov ecx, dword [esp + 0x4c]
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x50]
shl edx, 4
add esi, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x14], eax
movsx eax, word [ecx + 0x20]
mov ecx, dword [ebp + 8]
mov dword [esi + 0x1c], eax
mov eax, 0x40
mov word [esi + 0xc], ax
mov al, byte [esp + 0xf]
mov byte [esi + 0xf], al
mov eax, dword [ebx + 0x14]
mov dword [eax + edx + 0x10], ecx
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x14]
mov ax, word [ecx + eax + 8]
mov word [ecx + edx + 8], ax
mov eax, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
inc byte [eax + ecx + 0xe]
mov edx, dword [ebx + 0x14]
add edx, ecx
mov dword [esp + 0x20], edx
mov eax, dword [edx + 0x28]
or word [edx + 0xa], 8
mov dword [esi + 0x28], eax
mov eax, dword [edx + 0x2c]
mov dword [esi + 0x2c], eax
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x4c]
mov ecx, esi
mov esi, eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x58], esi
test eax, eax
jg 0x5f4ba4
mov esi, dword [esp + 0x20]
cmp byte [ebx + 8], 0x2c
jne 0x5f4f11
mov al, byte [edi]
cmp al, 0x35
je 0x5f4d82
cmp al, 0x2d
jne 0x5f4e79
mov eax, dword [edi + 0xc]
mov cl, byte [eax]
cmp cl, 0xad
jne 0x5f4d8f
mov cl, byte [eax + 2]
cmp cl, 0xae
jne 0x5f4d99
mov edx, dword [eax + 0x14]
jmp 0x5f4da8
cmp cl, 0x88
jne 0x5f4e79
mov eax, dword [eax + 0x14]
mov edx, dword [eax + 0x1c]
mov edx, dword [edx]
mov dword [esp + 0x64], edx
cmp edx, 1
jle 0x5f4e79
mov ecx, dword [edi + 0x10]
call fcn.005bb650
cmp eax, edx
jne 0x5f4e79
mov eax, dword [edi + 0xc]
test dword [eax + 4], 0x800
je 0x5f4de0
test dword [ecx + 4], 0x800
jne 0x5f4e79
xor eax, eax
mov dword [esp + 0x54], eax
test edx, edx
jle 0x5f4e67
nop
mov edx, dword [edi + 0xc]
mov ecx, dword [esp + 0x10]
push eax
call fcn.005bb6d0
mov edx, dword [edi + 0x10]
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, eax
push dword [esp + 0x54]
call fcn.005bb6d0
movzx edx, byte [edi]
add esp, 4
mov ecx, dword [esp + 0x10]
push eax
push esi
call fcn.005bbf00
add esp, 8
test eax, eax
je 0x5f4e3b
mov ecx, dword [edi + 4]
and ecx, 1
or dword [eax + 4], ecx
mov cx, word [edi + 0x24]
mov word [eax + 0x24], cx
push 1
mov edx, eax
mov ecx, ebx
call fcn.005f30c0
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, ebx
push eax
call fcn.005f4290
mov eax, dword [esp + 0x58]
add esp, 4
inc eax
mov dword [esp + 0x54], eax
cmp eax, dword [esp + 0x64]
jl 0x5f4df0
mov esi, dword [ebx + 0x14]
add esi, dword [esp + 0x14]
or word [esi + 0xa], 6
xor eax, eax
mov word [esi + 0xc], ax
cmp byte [ebx + 8], 0x2c
jne 0x5f4f11
cmp byte [edi], 0x31
jne 0x5f4f11
cmp dword [esi + 0x18], 0
jne 0x5f4f11
mov ecx, dword [edi + 0xc]
cmp byte [ecx], 0xae
jne 0x5f4f11
mov eax, dword [edi + 0x14]
cmp dword [eax + 0x34], 0
jne 0x5f4f11
cmp dword [eax + 0x44], 0
jne 0x5f4f11
xor edx, edx
mov dword [esp + 0x54], edx
call fcn.005bb650
test eax, eax
jle 0x5f4f11
nop dword [eax]
push 2
mov edx, edi
mov ecx, ebx
call fcn.005f30c0
mov ecx, dword [ebx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x58]
add esp, 4
inc eax
mov dword [esp + 0x54], eax
lea edx, [esi + esi*2]
add edx, edx
push esi
mov dword [ecx + edx*8 + 0x18], eax
mov edx, ebx
mov ecx, dword [esp + 0x28]
call fcn.005f4290
add esp, 4
mov edx, esi
mov ecx, ebx
push dword [ebp + 8]
call fcn.005f37e0
mov ecx, dword [edi + 0xc]
add esp, 4
call fcn.005bb650
cmp dword [esp + 0x54], eax
jl 0x5f4ec0
mov eax, dword [ebx + 0x14]
add eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
or dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x3c]
or dword [eax + 0x24], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret