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

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x1c]
shl esi, 6
lea esi, [esi + eax + 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 0x38], ecx
movzx ecx, byte [esi + 0x28]
push edi
lea edi, [ecx*8]
sub edi, ecx
mov ecx, dword [eax + edi*8 + 0x20]
lea edi, [eax + edi*8 + 8]
mov eax, dword [esi]
mov ebx, eax
shr ebx, 0x19
xor edx, edx
and ebx, 1
mov dword [esp + 0x54], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x48], ebx
test eax, 0x800000
je 0x4c1414
test byte [esp + 0xac], 0x40
mov dword [esp + 0x28], 1
je 0x4c1418
mov dword [esp + 0x28], edx
mov eax, ebp
call fcn.0048cb20
mov dword [esp + 0x34], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, ebp
call fcn.0048cb20
cmp byte [esi + 0x28], 0
mov dword [esp + 0x58], eax
mov dword [esi + 0x20], eax
jbe 0x4c1499
test byte [edi + 0x15], 8
je 0x4c1499
mov eax, dword [esp + 0x14]
inc dword [eax + 0x48]
mov ecx, dword [eax + 0x48]
mov dword [esi + 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], eax
jg 0x4c1473
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c1499
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov edi, dword [ebp + 0x14]
xor edx, edx
inc dword [ebp + 0xc]
lea eax, [eax + eax*4]
lea eax, [edi + eax*4]
mov byte [eax], 0x30
mov byte [eax + 3], dl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ebp + 0x6e], dl
mov eax, dword [esi]
mov edi, dword [esp + 0xb0]
test eax, 0x8000000
je 0x4c175d
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [edi + 2]
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], eax
call fcn.0049d4a0
add esp, 4
cmp edi, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 1
jl 0x4c15c9
jmp 0x4c14f7
mov edi, dword [esp + 0x10]
xor ebx, ebx
test edi, edi
jle 0x4c15b0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
lea ecx, [ecx]
cmp dword [edx + ebx*8], eax
je 0x4c151f
inc ebx
cmp ebx, ecx
jl 0x4c1510
jmp 0x4c15b0
mov ecx, dword [esp + 0x20]
lea edi, [eax + ecx + 1]
mov eax, dword [esp + 0x24]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x3c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ecx*8]
mov eax, dword [ecx + 0xc]
mov edx, dword [esp + 0x14]
push edi
push eax
push edx
mov dword [esp + 0x58], edi
call fcn.0049b350
add esp, 0xc
mov dword [esp + 0x50], eax
cmp eax, edi
je 0x4c15b0
mov eax, dword [esp + 0x14]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x4c15b0
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x28], eax
jg 0x4c157d
call fcn.0048c980
test eax, eax
jne 0x4c15b0
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 9
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x6e], cl
cmp ebx, dword [esp + 0x10]
je 0x4c15c9
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jle 0x4c14f3
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
jg 0x4c15e7
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c1616
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov ecx, dword [esp + 0x28]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
jg 0x4c1629
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c165a
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x20]
inc ecx
dec edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1c]
mov ebx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
cmp dword [ebp + 0x10], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], edx
jg 0x4c1690
mov edi, ebp
call fcn.0048c980
test eax, eax
je 0x4c1690
mov ebx, 1
jmp 0x4c16c7
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x30]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov byte [eax], 0x67
mov byte [eax + 3], 0
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
mov byte [ebp + 0x6e], 0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
push eax
push ebp
mov eax, ebx
call fcn.0048cfa0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x4c172a
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x44]
add edi, 8
add ebx, 4
mov dword [esp + 0x24], eax
cmp byte [ebx], 0
je 0x4c171d
mov eax, dword [edi]
mov esi, dword [esp + 0x2c]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 0x1c]
lea eax, [ecx + edx*8]
call fcn.004c0ff0
add ebx, 8
add edi, 0xc
sub dword [esp + 0x24], 1
jne 0x4c1700
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov byte [esi + 0x29], 1
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x14]
cmp ecx, dword [eax + 0x38]
mov ebx, eax
jle 0x4c20f5
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
jmp 0x4c20f5
test eax, 0x1000
je 0x4c1803
mov ecx, dword [esp + 0x14]
mov al, byte [ecx + 0x15]
test al, al
jne 0x4c177f
inc dword [ecx + 0x48]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x54], edx
jmp 0x4c178f
dec al
mov byte [ecx + 0x15], al
movzx eax, al
mov ecx, dword [ecx + eax*4 + 0x18]
mov dword [esp + 0x54], ecx
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x3c]
push 0
push 3
push edx
push edi
mov edi, dword [esp + 0x40]
push edi
push eax
or ebx, 0xffffffff
call fcn.004bee00
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2c]
push ecx
push esi
push eax
push edx
call fcn.004c1080
mov ebx, eax
mov eax, dword [esi + 0x1c]
push 0
push eax
mov dword [esp + 0x50], eax
push ebx
push 0x26
mov eax, ebp
call fcn.0048ca00
mov eax, dword [esp + 0x58]
push ebx
push eax
push edi
push 0x2e
mov eax, ebp
call fcn.0048ca00
mov ecx, dword [esp + 0x5c]
add esp, 0x48
push ebx
push 0xffffffffffffffff
push edi
call fcn.0049ae30
add esp, 0xc
mov byte [esi + 0x29], 0x18
mov ebx, ecx
jmp 0x4c20f5
test eax, 0x2000
je 0x4c1a21
mov ecx, dword [esp + 0xb4]
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
push 0
push 0x24
push ecx
push edi
push esi
push edx
or ebx, 0xffffffff
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x3c], 0
call fcn.004bee00
mov ecx, dword [esp + 0x54]
push 0
push 0x18
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xd4]
push eax
push edi
push esi
push ecx
or ebx, ebx
call fcn.004bee00
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4c1876
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
cmp dword [esp + 0x1c], 0
je 0x4c18f4
mov edx, dword [esp + 0x1c]
mov edi, dword [edx]
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x28]
push eax
mov esi, ebx
mov byte [esp + 0x1c], 0x7b
mov byte [esp + 0x1d], 0x37
mov byte [esp + 0x1e], 0x46
mov byte [esp + 0x1f], 0x6d
call fcn.0049c620
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
add esp, 4
mov esi, eax
movzx eax, byte [edi]
push esi
push ecx
movzx ecx, byte [esp + eax - 0x2b]
push edx
push ecx
mov eax, ebp
call fcn.0048ca00
push ebx
mov eax, 1
call fcn.0049b180
mov esi, dword [esp + 0x3c]
add esp, 0x14
mov edx, ebx
call fcn.0049d470
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
call fcn.004c0ff0
mov eax, esi
jmp 0x4c1919
mov edx, dword [esp + 0x34]
neg ecx
push 0
sbb ecx, ecx
push edx
and ecx, 0xffffffbc
add ecx, 0x7a
push esi
push ecx
mov eax, ebp
call fcn.0048ca00
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
add esp, 0x10
cmp dword [esp + 0x10], 0
je 0x4c197f
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0xc]
mov edi, ebx
mov dword [esp + 0x24], esi
call fcn.0049c6a0
mov ecx, dword [esp + 0x28]
mov al, byte [ecx]
cmp al, 0x4d
je 0x4c195f
cmp al, 0x4b
je 0x4c195f
xor edx, edx
cmp dword [esp + 0x48], edx
setne dl
lea edx, [edx + edx + 0x4b]
mov dword [esp + 0x20], edx
jmp 0x4c1970
xor eax, eax
cmp dword [esp + 0x48], eax
sete al
lea eax, [eax + eax + 0x4c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
call fcn.004c0ff0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
mov edx, dword [esp + 0x30]
neg ecx
sbb cl, cl
and cl, 0xc7
add cl, 0x6a
cmp dword [esp + 0x1c], 0
mov byte [eax + 0x29], cl
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], esi
jne 0x4c19b2
cmp dword [esp + 0x10], 0
jne 0x4c19b2
mov ecx, 1
jmp 0x4c19b4
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov byte [eax + 0x2a], cl
cmp edi, 0x18
je 0x4c20f5
mov eax, ebx
call fcn.0049d450
mov esi, eax
push 0
push esi
push edx
push 0x28
mov eax, ebp
mov dword [esp + 0x64], esi
call fcn.0048ca00
mov edx, dword [esp + 0x40]
push esi
push 0xffffffffffffffff
push edx
mov ecx, ebx
call fcn.0049ae30
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
add esp, 0x1c
push esi
push eax
push ecx
push edi
mov eax, ebp
call fcn.0048ca00
mov eax, dword [ebp + 0x14]
add esp, 0x10
test eax, eax
je 0x4c20f5
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 0x6b
jmp 0x4c20f5
test eax, 0x30000
je 0x4c1e4d
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 8]
mov edx, dword [edx + ecx*4]
xor eax, eax
test byte [esp + 0xac], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0x7a
mov dword [esp + 0x74], 0x36
mov dword [esp + 0x78], 0x7b
mov dword [esp + 0x7c], 0x46
mov dword [esp + 0x80], 0x6d
mov dword [esp + 0x84], 0x37
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x60], 0x3f
mov dword [esp + 0x64], 0x29
mov dword [esp + 0x40], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edx
je 0x4c1ad7
test dword [esi], 0x1000000
je 0x4c1ad7
mov edx, dword [esp + 0x34]
cmp dword [edx + 4], ecx
jle 0x4c1ad7
mov eax, 1
mov dword [esp + 0x4c], eax
test dword [esi], 0x100000
je 0x4c1b12
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
push 0x18
push ecx
push edi
push edx
push eax
call fcn.004bee00
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
add esp, 0x18
mov eax, 1
test dword [esi], 0x200000
je 0x4c1b4d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x40]
push 0x24
push edx
push edi
push eax
push ecx
call fcn.004bee00
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x28], eax
add esp, 0x18
mov eax, 1
mov edx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x40]
push edx
push edi
push eax
push esi
push ecx
call fcn.004c1230
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x38], edx
xor edx, edx
add esp, 0x18
cmp byte [eax + ecx], dl
sete dl
cmp ebx, edx
jne 0x4c1b9e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x10], eax
jmp 0x4c1ba6
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x10]
xor edx, edx
cmp eax, edx
je 0x4c1bbb
test byte [eax + 0x10], 0x28
jne 0x4c1bbb
mov dword [esp + 0x44], edx
lea edi, [edx + 1]
jmp 0x4c1bc4
mov edi, 1
mov dword [esp + 0x44], edi
cmp ecx, edx
je 0x4c1bd2
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x50], edx
je 0x4c1bd6
mov dword [esp + 0x50], edi
cmp eax, edx
jne 0x4c1be4
cmp dword [esp + 0x40], edx
mov dword [esp + 0x24], edx
jle 0x4c1be8
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x40]
cmp eax, edx
je 0x4c1c28
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
mov eax, dword [eax + 0xc]
mov ebx, edi
mov edi, dword [esp + 0x14]
lea esi, [ecx + ebx]
call fcn.0049c6a0
mov ecx, dword [esp + 0x20]
push 0
push ecx
push esi
push 0x47
mov eax, ebp
call fcn.0048ca00
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea edi, [ebx + 1]
jmp 0x4c1c87
cmp dword [esp + 0x4c], edx
je 0x4c1c87
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
jg 0x4c1c41
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c1c72
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edi, dword [esp + 0x40]
lea edx, [ebx + ebx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
add edx, edi
mov byte [eax], 0x77
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov edi, dword [esp + 0x40]
inc edi
mov dword [esp + 0x44], 0
mov dword [esp + 0x24], 1
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push eax
push ecx
call fcn.004c1030
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
lea ecx, [edx + eax*2]
mov edx, dword [esp + 0x50]
lea eax, [edx + ecx*2]
mov ecx, dword [esp + eax*4 + 0x70]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0xfffffffffffffff2
push edi
push ecx
mov ecx, dword [esp + 0x34]
mov edi, ebp
call fcn.0048caf0
mov edi, dword [esp + 0x54]
add esp, 0x14
cmp dword [esp + 0x38], 0
je 0x4c1d25
mov edx, dword [esp + 0x1c]
mov eax, edi
lea esi, [edx + eax]
push esi
mov edx, ebx
call fcn.0049af70
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esp, 4
mov edi, ebx
call fcn.0049c6a0
mov eax, dword [esp + 0x20]
push 0
push eax
push esi
push 0x47
mov eax, ebp
call fcn.0048ca00
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x50]
push ecx
inc edi
push edx
call fcn.004c1030
mov esi, dword [esp + 0x44]
add esp, 0x18
cmp dword [esp + 0x38], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
jne 0x4c1d3d
cmp dword [esp + 0x40], 0
jne 0x4c1d3d
xor eax, eax
jmp 0x4c1d42
mov eax, 1
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x5c]
cmp eax, 0x18
je 0x4c1d87
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push 0xfffffffffffffff2
push edi
push eax
mov eax, dword [esp + 0x28]
mov edi, ebp
call fcn.0048caf0
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4c1d87
cmp dword [esp + 0x50], ebx
mov ecx, dword [ebp + 0xc]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, dword [esp + 0x14]
call fcn.0049d450
test dword [esi], 0x300000
mov edi, eax
je 0x4c1dc2
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
push edi
push edx
push eax
push 3
mov eax, ebp
call fcn.0048ca00
mov ecx, dword [esp + 0x68]
push 0
push ecx
push edi
push 0x47
mov eax, ebp
call fcn.0048ca00
add esp, 0x20
mov ebx, dword [esp + 0x14]
mov esi, edi
mov edx, ebx
call fcn.0049d470
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
call fcn.004c0ff0
mov eax, dword [esp + 0x38]
call fcn.004c0ff0
cmp dword [esp + 0x28], 0
jne 0x4c1e30
mov eax, ebx
call fcn.0049d450
mov edx, dword [esp + 0x18]
mov edi, eax
push 0
push edi
push edx
push 0x39
mov eax, ebp
mov dword [esp + 0x64], edi
call fcn.0048ca00
mov eax, dword [esp + 0x40]
push edi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.0049ae30
mov ecx, dword [esp + 0x4c]
add esp, 0x1c
push 0
push edi
push ecx
push 5
mov eax, ebp
call fcn.0048ca00
add esp, 0x10
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x18]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
mov byte [esi + 0x29], dl
mov dword [esi + 0x2c], eax
jmp 0x4c20f5
test eax, 0x10000000
je 0x4c20bf
mov ebx, dword [esp + 0x14]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, ebp
mov dword [esp + 0x18], ecx
call fcn.0048cb20
mov edx, esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x1c], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xac]
mov edx, ecx
mov word [esp + 0x68], cx
mov ecx, 0xe
lea edi, [esp + 0x70]
and eax, 8
mov word [esp + 0x6a], dx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x34], eax
jne 0x4c1f0d
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [ecx + 1]
mov dword [ebx + 0x48], eax
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
jg 0x4c1ee6
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c1f0d
mov ecx, dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 0x77
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov byte [eax + 1], dl
mov byte [ebp + 0x6e], dl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x4c1f2a
mov edi, ebp
call fcn.0048c980
test eax, eax
je 0x4c1f2a
mov dword [esp + 0x20], 1
jmp 0x4c1f59
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x4c]
xor eax, eax
cmp dword [edi + 0x14], eax
mov dword [esp + 0x10], eax
jle 0x4c2036
mov dword [esp + 0x44], eax
mov eax, dword [edi + 0x1c]
add eax, dword [esp + 0x44]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x30]
je 0x4c1f8f
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x4c201f
mov eax, dword [eax]
push 0x70
push 0
push eax
lea ecx, [esp + 0x74]
push ecx
push ebx
call fcn.004c2380
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4c201f
cmp word [esp + 0x34], 0
jne 0x4c2001
mov edx, dword [edi + 0x14]
dec edx
cmp dword [esp + 0x10], edx
jne 0x4c1fc1
or edi, 0xffffffff
jmp 0x4c1fc5
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [edx + 0xc]
push ecx
push 0xffffffffffffffff
push eax
push ebx
xor eax, eax
call fcn.0049b010
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x38]
add esp, 0x14
push 0xfffffffffffffff2
push edi
add ecx, 2
push 0x71
mov edi, ebp
call fcn.0048caf0
mov edi, dword [esp + 0x58]
add esp, 0xc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 0
push ecx
push edx
push 0x2f
mov eax, ebp
call fcn.0048ca00
push esi
call fcn.004c2d50
add esp, 0x14
mov eax, dword [esp + 0x10]
add dword [esp + 0x44], 0x28
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x10], eax
jl 0x4c1f70
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jle 0x4c204b
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x18]
jg 0x4c2065
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c208c
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
xor ecx, ecx
mov byte [eax], 0x60
mov byte [eax + 3], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4c20a5
mov ecx, dword [esp + 0x1c]
lea edx, [ecx*4 + 4]
mov ecx, dword [ebp + 0xc]
sub eax, edx
mov dword [eax], ecx
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
mov byte [esi + 0x29], 0x19
mov dword [esi + 0x2c], edx
call fcn.004c0ff0
jmp 0x4c20f1
mov al, byte [ebx + 0x4f1a74]
mov edx, dword [esp + 0x34]
mov byte [esi + 0x29], al
mov eax, dword [esp + 0x30]
push 0
mov dword [esi + 0x2c], eax
movzx ecx, byte [ebx + 0x4f1a78]
push edx
push eax
push ecx
mov eax, ebp
call fcn.0048ca00
add esp, 0x10
inc eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x2a], 1
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x4c2124
add edx, 4
jmp 0x4c2110
mov esi, dword [esp + 0x30]
cmp dword [edx], esi
je 0x4c2291
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4c2110
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0xb0], eax
mov eax, dword [esp + 0x3c]
mov edi, dword [eax + 0x14]
mov esi, dword [eax + 0x1c]
not edx
and dword [esp + 0xb4], edx
test edi, edi
jle 0x4c2195
test byte [esi + 0x12], 6
jne 0x4c218d
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb0]
and ecx, dword [esp + 0xb4]
or eax, ecx
jne 0x4c218d
mov ecx, dword [esp + 0x2c]
cmp dword [ecx + 0xc], 0
mov eax, dword [esi]
je 0x4c2178
test byte [eax + 2], 1
je 0x4c218d
mov edx, dword [esp + 0x58]
push 8
push edx
push eax
push ebx
call fcn.0049ccf0
add esp, 0x10
or byte [esi + 0x12], 4
dec edi
add esi, 0x28
test edi, edi
jg 0x4c2148
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xc], 0
je 0x4c2246
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov dword [eax + 0x24], ecx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x28], edx
jg 0x4c21c3
mov edi, ebp
call fcn.0048c980
test eax, eax
jne 0x4c21f3
mov edx, dword [ebp + 0x14]
mov ecx, 1
add dword [ebp + 0xc], ecx
lea eax, [esi + esi*4]
lea eax, [edx + eax*4]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x30
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x6e], cl
mov ebp, dword [esp + 0x3c]
mov edx, ebx
call fcn.0049b130
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x4c2246
test byte [esi + 0x12], 6
jne 0x4c223d
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb0]
and ecx, dword [esp + 0xb4]
or eax, ecx
jne 0x4c223d
mov edx, dword [esp + 0x58]
mov eax, dword [esi]
push 8
push edx
push eax
push ebx
call fcn.0049ccf0
add esp, 0x10
or byte [esi + 0x12], 4
inc edi
add esi, 0x28
cmp edi, dword [ebp + 0x14]
jl 0x4c2208
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4c2278
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x4c2278
xor eax, eax
lea ecx, [ebx + 0x60]
jmp 0x4c2260
cmp dword [ecx + 0x10], esi
je 0x4c22a2
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4c2260
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, 1
xor edx, edx
call fcn.004e3140
jmp 0x4c2128
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov byte [ecx + 9], 1
pop ebx
add esp, 0x98
ret