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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x50]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x38], edi
test edi, edi
je 0x5b483d
add edi, eax
mov dword [esp + 0x5c], edi
mov ebx, dword [esp + 0x6c]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], 0xe2
cmp ebx, 2
jne 0x5b488c
mov edx, dword [esi + 0x74]
mov esi, dword [esi + 0x10]
mov dword [esp + 0x30], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x1c], esi
test edx, edx
je 0x5b4896
mov esi, edx
mov dword [esp + 0x64], esi
jmp 0x5b4896
xor edx, edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], edx
mov ebp, dword [esi + 0xc]
mov dword [esp + 0x18], ebp
cmp ebx, 3
je 0x5b48e6
mov byte [esp + 0x60], 0x81
test edx, edx
je 0x5b48b0
mov byte [esp + 0x60], 0xa1
cmp ebx, 1
jne 0x5b4952
cmp esi, dword [esi + 0x10]
jne 0x5b4952
test edi, edi
je 0x5b48dd
mov dword [edi + 1], 0x1075053
mov word [edi + 5], 0xefbe
add edi, 7
mov dword [esp + 0x5c], edi
mov byte [edi], 0
add eax, 7
mov dword [esp + 0x44], eax
jmp 0x5b4952
push dword [ebp + 0x10]
mov bl, 0x89
mov byte [esp + 0x64], bl
call fcn.00598360
mov ecx, 0xa000
add esp, 4
cmp ax, cx
jne 0x5b4907
mov bl, 0x8d
mov byte [esp + 0x60], bl
cmp dword [esi + 0x74], 0
je 0x5b4914
or bl, 0x40
mov byte [esp + 0x60], bl
cmp dword [esi + 0x78], 0
je 0x5b4921
or bl, 0x10
mov byte [esp + 0x60], bl
push dword [ebp + 0x10]
call fcn.00598360
mov ecx, 0x2000
add esp, 4
cmp ax, cx
je 0x5b494b
push dword [ebp + 0x10]
call fcn.00598360
mov ecx, 0x6000
add esp, 4
cmp ax, cx
jne 0x5b4952
or bl, 2
mov byte [esp + 0x60], bl
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 5
jge 0x5b4974
lea eax, [esp + 0x34]
push 5
push eax
call fcn.005af470
mov edi, eax
add esp, 8
mov dword [esp + 0x5c], edi
mov bh, byte [esp + 0x60]
test edi, edi
je 0x5b498c
mov dword [edi + 1], 0x1055252
add edi, 5
mov dword [esp + 0x5c], edi
mov byte [edi], bh
cmp dword [esp + 0x34], 0
je 0x5b49a8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b49a8
add dword [eax + 4], 5
mov ecx, dword [esp + 0x44]
add ecx, 5
mov dword [esp + 0x44], ecx
test bh, 8
je 0x5b4af8
mov eax, dword [esp + 0x4c]
mov esi, dword [ebp + 0x24]
sub eax, ecx
mov ebp, dword [ebp + 0x20]
cmp eax, 6
jge 0x5b49e2
lea eax, [esp + 0x34]
push 6
push eax
call fcn.005af470
mov edi, eax
add esp, 8
mov dword [esp + 0x5c], edi
test edi, edi
je 0x5b49f0
mov word [edi + 1], 0x4d4e
mov byte [edi + 4], 1
mov ebx, dword [esp + 0x4c]
sub ebx, dword [esp + 0x44]
cmp ebx, 0xff
jbe 0x5b4a05
mov ebx, 0xff
lea eax, [esi + 5]
cmp eax, ebx
jbe 0x5b4aaf
test edi, edi
je 0x5b4a2e
lea eax, [ebx - 5]
mov byte [edi + 3], bl
push eax
lea eax, [edi + 6]
mov byte [edi + 5], 1
push ebp
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, ebx
mov eax, 5
add ebp, 0xfffffffb
sub eax, ebx
add ebp, ebx
add esi, eax
cmp dword [esp + 0x34], 0
je 0x5b4a57
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b4a57
add dword [eax + 4], ebx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add ecx, ebx
sub eax, ecx
mov dword [esp + 0x44], ecx
cmp eax, 6
jge 0x5b4a92
lea eax, [esp + 0x34]
push 6
push eax
call fcn.005af470
mov ebx, dword [esp + 0x54]
add esp, 8
sub ebx, dword [esp + 0x44]
mov edi, eax
cmp ebx, 0xff
jbe 0x5b4a92
mov ebx, 0xff
test edi, edi
je 0x5b4aa0
mov word [edi + 1], 0x4d4e
mov byte [edi + 4], 1
lea eax, [esi + 5]
cmp eax, ebx
ja 0x5b4a10
mov dword [esp + 0x5c], edi
lea ebx, [esi + 5]
test edi, edi
je 0x5b4ad1
push esi
lea eax, [edi + 6]
mov byte [edi + 3], bl
push ebp
push eax
mov byte [edi + 5], 0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add edi, ebx
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x34], 0
je 0x5b4aec
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b4aec
add dword [eax + 4], ebx
add dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x18]
mov bh, byte [esp + 0x60]
test bh, 1
je 0x5b4cb9
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0x2c
jge 0x5b4b23
lea eax, [esp + 0x34]
push 0x2c
push eax
call fcn.005af470
mov edi, eax
add esp, 8
mov dword [esp + 0x5c], edi
test edi, edi
je 0x5b4c98
push dword [ebp + 0x10]
call fcn.005984f0
push dword [ebp + 0x10]
movzx esi, ax
call fcn.00598cb0
push dword [ebp + 0x10]
mov dword [esp + 0x68], eax
mov dword [esp + 0x38], edx
call fcn.005983a0
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], edx
mov ecx, dword [ecx + 0x10228]
and ecx, 0x1800000
cmp ecx, 0x1000000
jne 0x5b4b7d
and esi, 0xf16d
or esi, 0x16d
mov dword [edi + 1], 0x12c5850
movzx ebx, si
mov byte [edi + 5], bl
mov edx, ebx
shr edx, 8
mov ecx, ebx
mov byte [edi + 6], dl
mov eax, ebx
shr ecx, 0x10
mov byte [edi + 7], cl
shr eax, 0x18
mov byte [edi + 8], al
mov byte [edi + 9], al
mov byte [edi + 0xa], cl
mov byte [edi + 0xb], dl
mov byte [edi + 0xc], bl
push dword [ebp + 0x10]
call fcn.00598590
mov ebx, eax
add esp, 4
mov byte [edi + 0xd], bl
mov edx, ebx
shr eax, 0x18
mov ecx, ebx
mov byte [edi + 0x10], al
shr edx, 8
mov byte [edi + 0xe], dl
shr ecx, 0x10
mov byte [edi + 0xf], cl
mov byte [edi + 0x11], al
mov byte [edi + 0x12], cl
mov byte [edi + 0x13], dl
mov byte [edi + 0x14], bl
mov ebx, dword [esp + 0x5c]
mov edx, ebx
mov byte [edi + 0x15], bl
mov ecx, ebx
shr edx, 8
mov eax, ebx
mov byte [edi + 0x16], dl
shr eax, 0x18
mov byte [edi + 0x18], al
shr ecx, 0x10
mov byte [edi + 0x17], cl
mov byte [edi + 0x19], al
mov byte [edi + 0x1a], cl
mov byte [edi + 0x1b], dl
mov byte [edi + 0x1c], bl
mov ebx, dword [esp + 0x28]
mov edx, ebx
mov byte [edi + 0x1d], bl
mov ecx, ebx
shr edx, 8
mov eax, ebx
shr eax, 0x18
mov byte [edi + 0x20], al
mov byte [edi + 0x1e], dl
shr ecx, 0x10
mov byte [edi + 0x1f], cl
mov byte [edi + 0x21], al
mov eax, dword [esp + 0x1c]
mov byte [edi + 0x22], cl
mov byte [edi + 0x23], dl
mov byte [edi + 0x24], bl
test byte [eax + 0x88], 2
je 0x5b4c6f
mov ebx, dword [eax + 0x58]
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov eax, ebx
mov byte [edi + 0x25], bl
mov byte [edi + 0x26], dl
mov byte [edi + 0x27], cl
shr eax, 0x18
mov byte [edi + 0x28], al
mov byte [edi + 0x29], al
mov byte [edi + 0x2a], cl
mov byte [edi + 0x2b], dl
mov byte [edi + 0x2c], bl
jmp 0x5b4c8d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b4c7b
mov eax, dword [eax + 0x68]
jmp 0x5b4c7e
mov eax, dword [ebp + 0x68]
push dword [eax + 0x14]
lea eax, [edi + 0x25]
push eax
call fcn.005b5690
add esp, 8
mov bh, byte [esp + 0x60]
add edi, 0x2c
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x34], 0
je 0x5b4cb4
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b4cb4
add dword [eax + 4], 0x2c
add dword [esp + 0x44], 0x2c
test bh, 4
je 0x5b4f1c
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 7
jge 0x5b4ce4
lea eax, [esp + 0x34]
push 7
push eax
call fcn.005af470
mov edi, eax
add esp, 8
mov dword [esp + 0x5c], edi
mov esi, dword [ebp + 0x38]
xor bl, bl
test edi, edi
je 0x5b4d00
mov byte [edi + 4], 1
mov word [edi + 1], 0x4c53
jmp 0x5b4d00
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], eax
cmp eax, 0xff
jle 0x5b4d20
mov dword [esp + 0x20], 0xff
test edi, edi
je 0x5b4d29
lea eax, [edi + 6]
jmp 0x5b4d2b
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
xor ebp, ebp
mov cl, byte [esi]
test cl, cl
je 0x5b4ee9
mov edx, 0xb
lea ebx, [ebx]
cmp edx, dword [esp + 0x20]
jge 0x5b51f7
test bl, bl
jne 0x5b4d8c
cmp cl, 0x2f
jne 0x5b4d91
test eax, eax
je 0x5b4d76
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov byte [ecx], 8
mov byte [eax + 1], bl
add eax, 2
add ebp, 2
mov dword [esp + 0x14], 0
add edx, 2
mov bl, 0x2f
inc esi
jmp 0x5b4edf
cmp bl, 0x2f
jne 0x5b4db2
cmp cl, 0x2e
jne 0x5b4db2
cmp byte [esi + 1], cl
jne 0x5b4db2
mov ch, byte [esi + 2]
lea edi, [esi + 2]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x5c]
cmp ch, 0x2f
je 0x5b4dd9
test ch, ch
je 0x5b4dd9
cmp cl, 0x2f
jne 0x5b4e1d
cmp byte [esi + 1], 0x2e
jne 0x5b4e1d
cmp byte [esi + 2], 0x2e
lea edi, [esi + 2]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x5c]
jne 0x5b4e1d
mov ch, byte [esi + 3]
cmp ch, cl
je 0x5b4dd9
test ch, ch
jne 0x5b4e1d
test eax, eax
je 0x5b4ded
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov byte [ecx], 4
mov byte [eax + 1], 0
add eax, 2
add ebp, 2
add edx, 2
cmp byte [esi], 0x2f
jne 0x5b4e0a
add esi, 3
mov dword [esp + 0x14], 0
mov bl, 0x2e
jmp 0x5b4edf
mov esi, dword [esp + 0x28]
mov bl, 0x2e
mov dword [esp + 0x14], 0
jmp 0x5b4edf
test bl, bl
je 0x5b4e26
cmp bl, 0x2f
jne 0x5b4e3a
cmp cl, 0x2e
jne 0x5b4e3a
mov ch, byte [esi + 1]
lea ebx, [esi + 1]
cmp ch, 0x2f
je 0x5b4e54
test ch, ch
je 0x5b4e54
cmp cl, 0x2f
jne 0x5b4e90
cmp byte [esi + 1], 0x2e
lea ebx, [esi + 1]
jne 0x5b4e97
mov cl, byte [esi + 2]
cmp cl, 0x2f
je 0x5b4e54
test cl, cl
jne 0x5b4e97
test eax, eax
je 0x5b4e68
mov ecx, eax
mov dword [esp + 0x1c], ecx
mov byte [ecx], 2
mov byte [eax + 1], 0
add eax, 2
add ebp, 2
add edx, 2
cmp byte [esi], 0x2f
jne 0x5b4e82
add esi, 2
mov dword [esp + 0x14], 0
mov bl, 0x2e
jmp 0x5b4edf
mov esi, ebx
mov dword [esp + 0x14], 0
mov bl, 0x2e
jmp 0x5b4edf
cmp dword [esp + 0x14], 0
jne 0x5b4ecd
test eax, eax
je 0x5b4eb3
mov ecx, eax
lea ebx, [eax + 1]
mov dword [esp + 0x1c], ecx
add eax, 2
mov dword [esp + 0x14], ebx
mov byte [ecx], 0
mov byte [ebx], 0
jmp 0x5b4ebb
lea ecx, [esp + 0x13]
mov dword [esp + 0x14], ecx
mov cl, byte [esi]
add ebp, 2
add edx, 2
cmp cl, 0x2f
jne 0x5b4ecd
mov bl, cl
inc esi
jmp 0x5b4edf
inc esi
mov bl, cl
test eax, eax
je 0x5b4edd
mov ecx, dword [esp + 0x14]
mov byte [eax], bl
inc eax
inc byte [ecx]
inc ebp
inc edx
mov cl, byte [esi]
test cl, cl
jne 0x5b4d50
lea ecx, [ebp + 5]
test edi, edi
je 0x5b4ef9
mov byte [edi + 3], cl
mov byte [edi + 5], 0
add edi, ecx
cmp dword [esp + 0x34], 0
je 0x5b4f14
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b4f14
add dword [eax + 4], ecx
add dword [esp + 0x44], ecx
mov bh, byte [esp + 0x60]
mov esi, dword [esp + 0x18]
test bh, bh
jns 0x5b508e
push dword [esi + 0x10]
mov ebp, 5
xor bl, bl
mov dword [esp + 0x60], ebp
call fcn.00597d10
add esp, 4
test eax, eax
je 0x5b4f6e
push dword [esi + 0x10]
call fcn.00597d00
mov esi, eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x10]
call fcn.00598500
add esp, 8
cmp esi, eax
mov esi, dword [esp + 0x18]
jg 0x5b4f6e
mov ebp, 0xc
mov bl, 1
mov dword [esp + 0x5c], ebp
push dword [esi + 0x10]
call fcn.00598510
add esp, 4
test eax, eax
je 0x5b4f87
add ebp, 7
or bl, 2
mov dword [esp + 0x5c], ebp
push dword [esi + 0x10]
call fcn.00597ce0
add esp, 4
test eax, eax
je 0x5b4fa0
add ebp, 7
or bl, 4
mov dword [esp + 0x5c], ebp
push dword [esi + 0x10]
call fcn.00598170
mov ecx, dword [esp + 0x60]
add esp, 4
test eax, eax
je 0x5b4fbd
add ecx, 7
or bl, 8
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, ecx
jge 0x5b4fdd
push ecx
lea eax, [esp + 0x38]
push eax
call fcn.005af470
mov ecx, dword [esp + 0x64]
add esp, 8
mov edi, eax
test edi, edi
je 0x5b506b
mov word [edi + 1], 0x4654
mov byte [edi + 3], cl
mov byte [edi + 4], 1
add edi, 5
mov byte [edi], bl
test bl, 1
je 0x5b5014
push dword [esi + 0x10]
call fcn.00597d00
push eax
lea eax, [edi + 1]
push eax
call fcn.005b5af0
add esp, 0xc
add edi, 7
test bl, 2
je 0x5b5031
push dword [esi + 0x10]
call fcn.00598500
push eax
lea eax, [edi + 1]
push eax
call fcn.005b5af0
add esp, 0xc
add edi, 7
test bl, 4
je 0x5b504e
push dword [esi + 0x10]
call fcn.00597cd0
push eax
lea eax, [edi + 1]
push eax
call fcn.005b5af0
add esp, 0xc
add edi, 7
test bl, 8
je 0x5b506b
push dword [esi + 0x10]
call fcn.00598160
push eax
lea eax, [edi + 1]
push eax
call fcn.005b5af0
add esp, 0xc
add edi, 7
cmp dword [esp + 0x34], 0
mov ebp, dword [esp + 0x5c]
je 0x5b508a
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b508a
add dword [eax + 4], ebp
add dword [esp + 0x44], ebp
test bh, 0x40
je 0x5b50e6
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 4
jge 0x5b50b1
lea eax, [esp + 0x34]
push 4
push eax
call fcn.005af470
add esp, 8
mov edi, eax
test edi, edi
je 0x5b50c5
mov word [edi + 1], 0x4552
mov byte [edi + 3], 4
add edi, 4
mov byte [edi], 1
cmp dword [esp + 0x34], 0
je 0x5b50e1
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b50e1
add dword [eax + 4], 4
add dword [esp + 0x44], 4
test bh, 0x20
je 0x5b516a
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0xc
jge 0x5b5109
lea eax, [esp + 0x34]
push 0xc
push eax
call fcn.005af470
add esp, 8
mov edi, eax
test edi, edi
je 0x5b5149
mov ebx, dword [esp + 0x30]
mov dword [edi + 1], 0x10c4c50
mov ebx, dword [ebx + 0x58]
mov edx, ebx
mov ecx, ebx
mov byte [edi + 5], bl
mov eax, ebx
shr edx, 8
mov bh, byte [esp + 0x60]
mov byte [edi + 6], dl
shr ecx, 0x10
mov byte [edi + 7], cl
shr eax, 0x18
mov byte [edi + 8], al
mov byte [edi + 9], al
mov byte [edi + 0xa], cl
mov byte [edi + 0xb], dl
mov byte [edi + 0xc], bl
add edi, 0xc
cmp dword [esp + 0x34], 0
je 0x5b5165
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b5165
add dword [eax + 4], 0xc
add dword [esp + 0x44], 0xc
test bh, 0x10
je 0x5b5269
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0xc
jge 0x5b5191
lea eax, [esp + 0x34]
push 0xc
push eax
call fcn.005af470
add esp, 8
mov edi, eax
mov ebp, dword [esp + 0x64]
test edi, edi
je 0x5b51d4
mov dword [edi + 1], 0x10c4c43
mov eax, dword [ebp + 0x78]
mov ebx, dword [eax + 0x58]
mov edx, ebx
mov ecx, ebx
mov byte [edi + 5], bl
mov eax, ebx
shr edx, 8
mov bh, byte [esp + 0x60]
mov byte [edi + 6], dl
shr ecx, 0x10
mov byte [edi + 7], cl
shr eax, 0x18
mov byte [edi + 8], al
mov byte [edi + 9], al
mov byte [edi + 0xa], cl
mov byte [edi + 0xb], dl
mov byte [edi + 0xc], bl
add edi, 0xc
cmp dword [esp + 0x34], 0
je 0x5b51f0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b51f0
add dword [eax + 4], 0xc
add dword [esp + 0x44], 0xc
jmp 0x5b526d
cmp byte [esi], 0
je 0x5b4ee9
lea edx, [ebp + 5]
test edi, edi
je 0x5b521b
mov ecx, dword [esp + 0x1c]
or byte [ecx], 1
mov byte [edi + 3], dl
mov byte [edi + 5], 1
add edi, edx
mov dword [esp + 0x5c], edi
cmp dword [esp + 0x34], 0
je 0x5b5236
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b5236
add dword [eax + 4], edx
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
add ecx, edx
sub eax, ecx
mov dword [esp + 0x44], ecx
cmp eax, 0xb
jge 0x5b4ce9
lea eax, [esp + 0x34]
push 0xb
push eax
call fcn.005af470
mov edi, eax
add esp, 8
mov dword [esp + 0x5c], edi
jmp 0x5b4ce9
mov ebp, dword [esp + 0x64]
test bh, 2
je 0x5b5320
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0x14
jge 0x5b5294
lea eax, [esp + 0x34]
push 0x14
push eax
call fcn.005af470
add esp, 8
mov edi, eax
test edi, edi
je 0x5b52ff
mov dword [edi + 1], 0x1144e50
push dword [esi + 0x10]
call fcn.005986d0
mov ebx, eax
mov byte [edi + 5], 0
xor edx, edx
xor ecx, ecx
xor eax, eax
shr edx, 8
mov byte [edi + 6], dl
add esp, 4
shr ecx, 0x10
mov byte [edi + 7], cl
shr eax, 0x18
mov byte [edi + 8], al
mov byte [edi + 9], al
mov eax, ebx
mov byte [edi + 0xa], cl
mov ecx, ebx
mov byte [edi + 0xb], dl
mov edx, ebx
mov byte [edi + 0xc], 0
mov byte [edi + 0xd], bl
shr edx, 8
mov byte [edi + 0xe], dl
shr ecx, 0x10
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0x10], al
mov byte [edi + 0x11], al
mov byte [edi + 0x12], cl
mov byte [edi + 0x13], dl
mov byte [edi + 0x14], bl
add edi, 0x14
cmp dword [esp + 0x34], 0
je 0x5b531b
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b531b
add dword [eax + 4], 0x14
add dword [esp + 0x44], 0x14
cmp byte [esi + 0x74], 0
je 0x5b53b5
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cmp eax, 0x10
jge 0x5b5348
lea eax, [esp + 0x34]
push 0x10
push eax
call fcn.005af470
add esp, 8
mov edi, eax
test edi, edi
je 0x5b5394
mov dword [edi + 1], 0x110465a
mov word [edi + 5], 0x7a70
movzx eax, byte [esi + 0x74]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x75]
mov byte [edi + 8], al
mov ebx, dword [esi + 0x78]
mov edx, ebx
mov byte [edi + 9], bl
mov ecx, ebx
shr edx, 8
mov eax, ebx
mov byte [edi + 0xa], dl
shr ecx, 0x10
mov byte [edi + 0xb], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov byte [edi + 0xd], al
mov byte [edi + 0xe], cl
mov byte [edi + 0xf], dl
mov byte [edi + 0x10], bl
add edi, 0x10
cmp dword [esp + 0x34], 0
je 0x5b53b0
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b53b0
add dword [eax + 4], 0x10
add dword [esp + 0x44], 0x10
cmp dword [esp + 0x6c], 1
jne 0x5b5403
cmp ebp, dword [ebp + 0x10]
jne 0x5b5403
test edi, edi
je 0x5b53e2
mov eax, dword [esp + 0x68]
push 0xed
push 0
push dword [eax + 0x10c]
lea eax, [edi + 1]
push eax
call fcn.005b4250
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x5b53fe
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x84]
test eax, eax
je 0x5b53fe
add dword [eax + 4], 0x1c
add dword [esp + 0x44], 0x1c
mov ecx, dword [esp + 0x44]
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
test cl, 1
je 0x5b5427
mov eax, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x34], ecx
test eax, eax
je 0x5b5422
mov byte [eax + ecx], dl
mov edx, 1
cmp dword [esp + 0x24], 0
je 0x5b5456
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x5b544e
mov eax, dword [esp + 0x34]
sub eax, edx
push eax
push dword [esp + 0x44]
push dword [esp + 0x4c]
push ecx
call fcn.005b4250
add esp, 0x10
mov eax, dword [esp + 0x38]
add esp, 0x48
ret
mov eax, dword [esp + 0x34]
add esp, 0x48
ret