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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
mov eax, dword [0x8a3940]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
test dword [ebx], 0x8004
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x50], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x54], eax
je 0x4bf65f
push ebx
call fcn.0048da50
add esp, 4
test eax, eax
je 0x4bf65f
test byte [ebx], 4
push ebx
je 0x4bf60b
call fcn.0048a6a0
jmp 0x4bf610
call fcn.004843f0
mov edx, dword [esp + 0x40]
add esp, 4
xor ecx, ecx
mov edi, eax
test edx, edx
je 0x4bf632
mov eax, dword [esi + 0xc]
cmp dword [eax], edi
je 0x4bf704
inc ecx
add eax, 4
cmp ecx, edx
jb 0x4bf622
mov eax, dword [esi + 0x10]
cmp edx, eax
jb 0x4bf655
add eax, 8
mov dword [esi + 0x10], eax
shl eax, 2
push eax
push dword [esi + 0xc]
call fcn.004a6a70
mov edx, dword [esp + 0x44]
add esp, 8
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], edi
mov edi, dword [esp + 0x3c]
cmp dword [ebp + 0x14], 0
je 0x4bf6cd
mov ecx, dword [esi + 0x1c]
dec dword [esi + 4]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 4]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 8]
add ecx, dword [esi]
mov dword [esp + 0x40], eax
add eax, edx
cmp eax, ecx
jb 0x4bf6b0
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x40]
sub edx, dword [esi]
mov dword [esp + 0x38], edx
lea eax, [eax + ecx*2]
add eax, ecx
push eax
mov dword [esi + 8], eax
mov eax, dword [esi]
push eax
call fcn.004a6a70
mov edx, dword [esp + 0x40]
add esp, 8
add edx, eax
mov dword [esi], eax
mov dword [esi + 4], edx
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4bf6cd
push dword [esp + 0x40]
push eax
push edx
call fcn.0059ce60
mov eax, dword [esp + 0x4c]
add esp, 0xc
add dword [esi + 4], eax
mov eax, dword [ebx]
test eax, 0x400
je 0x4bfb59
mov eax, dword [esp + 0x54]
mov dword [esp + 0x34], 0
test eax, eax
je 0x4bf767
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x38]
push ecx
push eax
push ebx
call fcn.0048bf30
add esp, 0x10
mov dword [esp + 0x50], eax
jmp 0x4bf77e
cmp dword [ebp + 0x14], 0
jne 0x4bf71a
cmp dword [esi + 0x14], 0
je 0x4bf71a
push edx
push esi
call fcn.004bedf0
add esp, 8
mov edx, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
lea ecx, [ebx + edx]
lea eax, [edi + 4]
cmp eax, ecx
jb 0x4bf748
lea eax, [edx + 2]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
mov dword [esi], eax
add esp, 8
sub eax, ebx
add edi, eax
mov dword [esi + 4], edi
mov dword [edi], 0x6c6c756e
add dword [esi + 4], 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0048bbf0
push ebx
mov dword [esp + 0x58], eax
call fcn.0048bbd0
add esp, 8
mov dword [esp + 0x54], eax
mov edx, dword [esi + 8]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
lea ecx, [ebx + edx]
lea eax, [edi + 1]
cmp eax, ecx
jb 0x4bf7af
lea eax, [edx*2 + 1]
add eax, edx
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov byte [edi], 0x22
xor ecx, ecx
mov edi, dword [esi + 4]
mov edx, dword [esi]
inc edi
mov dword [esi + 4], edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x54], ecx
jbe 0x4bfb04
nop
mov edx, dword [esp + 0x50]
mov bl, byte [ecx + edx]
lea eax, [ecx + edx]
mov dword [esp + 0x48], eax
mov eax, ecx
cmp bl, 0x20
jb 0x4bf8a4
nop dword [eax]
cmp bl, 0x5c
je 0x4bf804
cmp bl, 0x22
je 0x4bf804
mov bl, byte [eax + edx + 1]
inc eax
cmp bl, 0x20
jae 0x4bf7f0
mov dword [esp + 0x4c], eax
cmp eax, ecx
jbe 0x4bf8a4
mov edx, dword [esi]
sub eax, ecx
mov edi, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esp + 0x44], eax
add ecx, edx
add eax, edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
cmp eax, ecx
jb 0x4bf862
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x44]
lea eax, [eax + ecx*2]
add eax, ecx
push eax
push edx
mov dword [esi + 8], eax
call fcn.004a6a70
mov edx, eax
mov dword [esp + 0x48], eax
mov ecx, edx
mov dword [esi], edx
sub ecx, dword [esp + 0x40]
add esp, 8
add edi, ecx
mov dword [esi + 4], edi
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4bf88c
push dword [esp + 0x44]
push eax
push edi
call fcn.0059ce60
mov eax, dword [esp + 0x50]
add esp, 0xc
add dword [esi + 4], eax
mov edi, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x40], edx
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x4c]
cmp eax, dword [esp + 0x54]
jae 0x4bfb04
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
jmp 0x4bf8ad
mov edi, dword [esi + 4]
mov edx, edi
mov dword [esp + 0x3c], edx
movzx ecx, bl
lea eax, [ecx - 8]
cmp eax, 0x54
ja case.0x4bf8c3.11
movzx eax, byte [eax + 0x4c0218]
jmp dword [eax*4 + 0x4c01f8]
mov edi, dword [esi + 8]
lea eax, [edx + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edi]
cmp eax, ecx
jb 0x4bf8f9
lea eax, [edi + 1]
lea eax, [edi + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
mov edx, dword [esp + 0x44]
add esp, 8
mov dword [esi], eax
sub eax, ebx
add edx, eax
mov dword [esi + 4], edx
mov eax, 0x5c5c
mov word [edx], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bf93a
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x225c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bf97b
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x625c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bf9bc
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x665c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bf9fd
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x6e5c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bfa3e
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x725c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
mov edx, dword [esi + 8]
lea eax, [edi + 2]
mov ebx, dword [esi]
lea ecx, [ebx + edx]
cmp eax, ecx
jb 0x4bfa7f
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, ebx
mov dword [esi], eax
add esp, 8
add edi, eax
mov dword [esi + 4], edi
mov eax, 0x745c
mov word [edi], ax
mov edi, dword [esi + 4]
add edi, 2
mov dword [esi + 4], edi
jmp 0x4bfaeb
push ecx
push str.u00_02X
lea eax, [esp + 0x78]
push 8
push eax
call fcn.0057b8f0
mov edx, dword [esi + 8]
add esp, 0x10
mov ebx, dword [esi]
mov edi, dword [esi + 4]
lea ecx, [ebx + edx]
lea eax, [edi + 6]
cmp eax, ecx
jb 0x4bfad5
add edx, 2
lea eax, [edx + edx*2]
push eax
push ebx
mov dword [esi + 8], eax
call fcn.004a6a70
mov dword [esi], eax
add esp, 8
sub eax, ebx
add edi, eax
mov dword [esi + 4], edi
mov eax, dword [esp + 0x70]
mov dword [edi], eax
mov ax, word [esp + 0x74]
mov word [edi + 4], ax
add dword [esi + 4], 6
mov edi, dword [esi + 4]
mov ecx, dword [esp + 0x44]
mov edx, dword [esi]
inc ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
cmp ecx, dword [esp + 0x54]
jb 0x4bf7d0
mov ebx, dword [esi + 8]
lea eax, [edi + 1]
lea ecx, [edx + ebx]
cmp eax, ecx
jb 0x4bfb32
lea eax, [ebx*2 + 1]
add eax, ebx
push eax
push edx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, dword [esp + 0x48]
add esp, 8
add edi, eax
mov dword [esi], eax
mov dword [esi + 4], edi
mov byte [edi], 0x22
push dword [esp + 0x34]
inc dword [esi + 4]
call fcn.0049a010
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
test al, 0xa
je 0x4bfc53
push ebx
call fcn.0048be30
mov edi, edx
add esp, 4
mov ebx, eax
test edi, edi
jg 0x4bfb89
jl 0x4bfb78
test ebx, ebx
jae 0x4bfb89
neg ebx
mov dword [esp + 0x4c], 1
adc edi, 0
neg edi
jmp 0x4bfb91
mov dword [esp + 0x4c], 0
lea eax, [esp + 0x70]
xor esi, esi
push 0
push 0xa
push edi
dec eax
inc esi
push ebx
mov dword [esp + 0x44], eax
call fcn.0059c060
mov cl, al
mov edi, edx
shl cl, 2
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x34]
add dl, dl
sub bl, dl
add bl, 0x30
mov byte [ecx], bl
mov ebx, eax
or eax, edi
mov eax, ecx
jne 0x4bfb97
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
je 0x4bfbe4
inc edi
lea eax, [esp + 0x70]
sub eax, edi
mov byte [eax], 0x2d
mov ebx, dword [esi + 4]
lea edx, [esp + 0x70]
mov ecx, dword [esi]
sub edx, edi
mov dword [esp + 0x34], ecx
add ecx, dword [esi + 8]
lea eax, [ebx + edi]
mov dword [esp + 0x38], edx
cmp eax, ecx
jb 0x4bfc28
mov ecx, dword [esi + 8]
lea eax, [edi + ecx*2]
add eax, ecx
push eax
push dword [esp + 0x38]
mov dword [esi + 8], eax
call fcn.004a6a70
mov edx, dword [esp + 0x40]
add esp, 8
mov dword [esi], eax
sub eax, dword [esp + 0x34]
add ebx, eax
mov dword [esi + 4], ebx
test edx, edx
je 0x4c01e3
push edi
push edx
push ebx
call fcn.0059ce60
add esp, 0xc
add dword [esi + 4], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
test al, 0x1a
je 0x4bfd06
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.0048bd80
fstp qword [esp + 0x60]
movsd xmm0, qword [esp + 0x60]
lea eax, [esp + 0x80]
movsd qword [esp], xmm0
push dword [esp + 0x40]
push str._.f
push 0x40
push eax
call fcn.0057b8f0
lea edi, [esp + 0x90]
add esp, 0x18
lea ecx, [edi + 1]
nop word [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bfca0
mov eax, dword [esi]
sub edi, ecx
mov edx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov dword [esp + 0x34], eax
lea ecx, [eax + edx]
lea eax, [ebx + edi]
cmp eax, ecx
jb 0x4bfcdf
lea eax, [edi + edx*2]
add eax, edx
push eax
push dword [esp + 0x38]
mov dword [esi + 8], eax
call fcn.004a6a70
mov dword [esi], eax
add esp, 8
sub eax, dword [esp + 0x34]
add ebx, eax
mov dword [esi + 4], ebx
push edi
lea eax, [esp + 0x7c]
push eax
push ebx
call fcn.0059ce60
add esp, 0xc
add dword [esi + 4], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
test eax, 0xfffbffff
je 0x4bf71a
test al, al
jns 0x4bfd44
push ebx
call fcn.0048bc60
add esp, 4
test eax, eax
je 0x4bfd33
mov ecx, 4
mov eax, str.true
push ecx
push eax
jmp 0x4c01da
mov ecx, 5
mov eax, str.false
push ecx
push eax
jmp 0x4c01da
test al, 0x20
je 0x4bfd82
lea eax, [esp + 0x59]
push eax
push ebx
call fcn.0048bc30
push 0xa
lea eax, [esp + 0x64]
mov byte [esp + 0x64], 0x22
push eax
push esi
mov byte [esp + 0x75], 0x22
call fcn.004bed90
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
test al, 0x40
je 0x4bfdc0
lea eax, [esp + 0x59]
push eax
push ebx
call fcn.0048c100
push 0x13
lea eax, [esp + 0x64]
mov byte [esp + 0x64], 0x22
push eax
push esi
mov byte [esp + 0x7e], 0x22
call fcn.004bed90
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret
test eax, 0x8000
je 0x4bff7f
push ebx
call fcn.0048da50
add esp, 4
mov dword [esp + 0x38], eax
test eax, eax
je 0x4bff6e
cmp dword [esi + 0x14], 0
je 0x4bfdf0
push edi
push esi
call fcn.004bedf0
add esp, 8
push 1
push 0x7695c0
push esi
call fcn.004bed90
mov edi, 1
add esp, 0xc
cmp dword [esp + 0x38], edi
jb 0x4bff3e
mov eax, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x50], eax
push edi
push ebx
call fcn.00483f70
add esp, 8
mov dword [esp + 0x48], eax
cmp edi, 1
jbe 0x4bfe6f
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 4]
mov dword [esp + 0x34], eax
lea ecx, [eax + edx]
lea eax, [ebx + 1]
cmp eax, ecx
jb 0x4bfe65
lea eax, [edx*2 + 1]
add eax, edx
push eax
push dword [esp + 0x38]
mov dword [esi + 8], eax
call fcn.004a6a70
mov dword [esi], eax
add esp, 8
sub eax, dword [esp + 0x34]
add ebx, eax
mov dword [esi + 4], ebx
mov byte [ebx], 0x2c
inc dword [esi + 4]
mov ebx, dword [esp + 0x44]
cmp dword [esi + 0x14], 0
je 0x4bff1c
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x58], eax
mov eax, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
add ecx, dword [esp + 0x40]
mov dword [esp + 0x34], eax
add eax, edx
mov dword [esp + 0x4c], edx
cmp eax, ecx
jb 0x4bfed2
mov ecx, dword [esi + 8]
lea eax, [edx + ecx*2]
add eax, ecx
push eax
push dword [esp + 0x44]
mov dword [esi + 8], eax
call fcn.004a6a70
mov ecx, dword [esp + 0x3c]
add esp, 8
mov edx, dword [esp + 0x4c]
mov dword [esi], eax
sub eax, dword [esp + 0x40]
add ecx, eax
mov dword [esi + 4], ecx
jmp 0x4bfed6
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4bfef0
push edx
push eax
push ecx
call fcn.0059ce60
mov eax, dword [esp + 0x58]
add esp, 0xc
add dword [esi + 4], eax
cmp dword [esi + 0x14], 0
je 0x4bff1c
mov eax, dword [esp + 0x48]
test dword [eax], 0x8004
je 0x4bff0f
push eax
call fcn.0048da50
add esp, 4
test eax, eax
jne 0x4bff1c
push dword [esp + 0x50]
push esi
call fcn.004bedf0
add esp, 8
push dword [esp + 0x54]
push 0
push dword [esp + 0x58]
push esi
push dword [esp + 0x58]
call fcn.004bf5b0
inc edi
add esp, 0x14
cmp edi, dword [esp + 0x38]
jbe 0x4bfe18
cmp dword [esi + 0x14], 0
je 0x4bff5d
push dword [esi + 0x18]
push dword [esi + 0x1c]
push esi
call fcn.004bed90
push dword [esp + 0x48]
push esi
call fcn.004bedf0
add esp, 0x14
mov ecx, 1
mov eax, 0x7695c4
push ecx
push eax
jmp 0x4c01da
mov ecx, 2
mov eax, 0x767f6c
push ecx
push eax
jmp 0x4c01da
test al, 4
je 0x4c01d3
push ebx
call fcn.0048ab40
add esp, 4
mov dword [esp + 0x50], eax
test eax, eax
je 0x4c01c5
cmp dword [esi + 0x14], 0
je 0x4bffac
push edi
push esi
call fcn.004bedf0
add esp, 8
push 1
push 0x7695c8
push esi
call fcn.004bed90
mov edi, 1
add esp, 0xc
mov dword [esp + 0x4c], edi
cmp dword [esp + 0x50], edi
jb 0x4c0198
nop
push edi
push ebx
call fcn.0048a620
add esp, 8
mov dword [esp + 0x44], eax
test dword [eax], 0x400
je 0x4c0189
push edi
push ebx
call fcn.0048a650
add esp, 8
mov dword [esp + 0x34], eax
cmp edi, 1
mov edi, dword [esi + 4]
jbe 0x4c0040
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x38], eax
lea ecx, [eax + edx]
lea eax, [edi + 1]
cmp eax, ecx
jb 0x4c0037
lea eax, [edx*2 + 1]
add eax, edx
push eax
push dword [esp + 0x3c]
mov dword [esi + 8], eax
call fcn.004a6a70
mov dword [esi], eax
add esp, 8
sub eax, dword [esp + 0x38]
add edi, eax
mov dword [esi + 4], edi
mov byte [edi], 0x2c
inc dword [esi + 4]
mov edi, dword [esi + 4]
cmp dword [esi + 0x14], 0
je 0x4c00b6
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi]
mov dword [esp + 0x58], eax
mov dword [esp + 0x38], ecx
lea eax, [edx + edi]
add ecx, dword [esi + 8]
mov dword [esp + 0x48], edx
cmp eax, ecx
jb 0x4c008b
mov ecx, dword [esi + 8]
lea eax, [edx + ecx*2]
add eax, ecx
push eax
push dword [esp + 0x3c]
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, dword [esp + 0x40]
add esp, 8
mov edx, dword [esp + 0x48]
add edi, eax
mov dword [esi], eax
mov dword [esi + 4], edi
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4c00a5
push edx
push eax
push edi
call fcn.0059ce60
mov eax, dword [esp + 0x54]
add esp, 0xc
add dword [esi + 4], eax
mov edi, dword [esp + 0x3c]
inc edi
push edi
push esi
call fcn.004bedf0
add esp, 8
jmp 0x4c00bb
mov edi, dword [esp + 0x3c]
inc edi
push dword [esp + 0x54]
push 0
push edi
push esi
push dword [esp + 0x54]
call fcn.004bf5b0
mov ecx, dword [esi]
add esp, 0x14
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [esp + 0x48], ecx
lea eax, [edx + ecx]
mov dword [esp + 0x38], eax
je 0x4c013b
lea eax, [edi + 2]
cmp eax, dword [esp + 0x38]
jb 0x4c010f
lea eax, [edx + 1]
lea eax, [edx + eax*2]
push eax
push ecx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, dword [esp + 0x50]
add esp, 8
add edi, eax
mov dword [esi], eax
mov dword [esi + 4], edi
mov eax, 0x203a
mov word [edi], ax
mov eax, dword [esp + 0x34]
add dword [esi + 4], 2
test dword [eax], 0x8004
je 0x4c016b
push eax
call fcn.0048da50
add esp, 4
test eax, eax
je 0x4c016b
mov eax, 1
jmp 0x4c016d
lea eax, [edi + 1]
cmp eax, dword [esp + 0x38]
jb 0x4c0165
lea eax, [edx*2 + 1]
add eax, edx
push eax
push ecx
mov dword [esi + 8], eax
call fcn.004a6a70
sub edi, dword [esp + 0x50]
add esp, 8
add edi, eax
mov dword [esi], eax
mov dword [esi + 4], edi
mov byte [edi], 0x3a
inc dword [esi + 4]
xor eax, eax
push dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x44]
inc eax
push eax
push esi
push dword [esp + 0x44]
call fcn.004bf5b0
mov edi, dword [esp + 0x60]
add esp, 0x14
inc edi
mov dword [esp + 0x4c], edi
cmp edi, dword [esp + 0x50]
jbe 0x4bffd0
cmp dword [esi + 0x14], 0
je 0x4c01b7
push dword [esi + 0x18]
push dword [esi + 0x1c]
push esi
call fcn.004bed90
push dword [esp + 0x48]
push esi
call fcn.004bedf0
add esp, 0x14
mov ecx, 1
mov eax, 0x7695cc
push ecx
push eax
jmp 0x4c01da
mov ecx, 2
mov eax, 0x7695d0
push ecx
push eax
jmp 0x4c01da
push 4
push str.null
push esi
call fcn.004bed90
add esp, 0xc
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0059bb21
mov esp, ebp
pop ebp
ret