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

Disassembly:
sub esp, 0x50
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push ebx
mov ebx, dword [eax]
push ebp
mov ebp, dword [ebx + 0xc]
push esi
mov esi, dword [eax + 0x1c]
lea ecx, [ecx + ecx*4]
shl ecx, 4
mov dword [esp + 0x20], esi
lea esi, [ecx + eax + 0x30]
movzx ecx, byte [esi + 0x34]
mov eax, dword [eax + 8]
push edi
lea edi, [ecx*8]
sub edi, ecx
mov ecx, dword [eax + edi*8 + 0x20]
lea eax, [eax + edi*8 + 8]
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edi, eax
shr edi, 0x19
xor edx, edx
and edi, 1
mov dword [esp + 0x38], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edi
test eax, 0x800000
je 0x4c47a7
test byte [esp + 0x6c], 0x40
mov dword [esp + 0x5c], 1
je 0x4c47ab
mov dword [esp + 0x5c], edx
mov eax, ebp
call fcn.0048d8c0
mov dword [esp + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov eax, ebp
call fcn.0048d8c0
cmp byte [esi + 0x34], 0
mov dword [esp + 0x4c], eax
mov dword [esi + 0x2c], eax
jbe 0x4c4831
mov edx, dword [esp + 0x44]
test byte [edx + 0x15], 8
je 0x4c4831
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
mov dword [esi + 0x18], ecx
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x58], eax
jg 0x4c480a
mov edi, ebp
call fcn.0048d6b0
mov edi, dword [esp + 0x20]
test eax, eax
jne 0x4c4831
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x58]
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
xor edx, edx
mov byte [eax], 7
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 + 0x62], dl
mov edx, dword [esi]
test edx, 0x8000000
je 0x4c4b65
mov esi, dword [esi + 0x10]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 0x38]
mov edi, 1
add dword [ebx + 0x54], edi
lea eax, [edx + 2]
cmp eax, ecx
mov dword [esp + 0x40], esi
mov esi, dword [ebx + 0x3c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x68], esi
jg 0x4c4883
add esi, eax
sub ecx, eax
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x38], ecx
jmp 0x4c4892
mov ecx, dword [ebx + 0x48]
lea esi, [ecx + 1]
add ecx, eax
mov dword [esp + 0x68], esi
mov dword [ebx + 0x48], ecx
cmp edx, edi
mov dword [esp + 0x2c], edi
jl 0x4c49b2
mov edi, edi
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
jle 0x4c4997
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
cmp dword [edx + eax*8], ecx
je 0x4c48d6
inc eax
cmp eax, esi
jl 0x4c48c3
mov dword [esp + 0x34], eax
jmp 0x4c4997
mov edx, dword [esp + 0x68]
mov dword [esp + 0x34], eax
lea esi, [edx + ecx + 1]
mov ecx, dword [esp + 0x48]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*4 + 8]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + edx*8]
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4c493a
cmp byte [eax], 0x84
jne 0x4c493a
mov eax, dword [eax + 0x18]
mov edi, dword [ebx + 0xc]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x5c], eax
jg 0x4c4929
call fcn.0048d6b0
test eax, eax
jne 0x4c4997
mov eax, dword [esp + 0x5c]
mov edx, dword [edi + 0x14]
inc dword [edi + 0xc]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov byte [eax], 0xe
jmp 0x4c497c
push esi
push eax
push ebx
call fcn.0049c420
add esp, 0xc
mov dword [esp + 0x58], eax
cmp eax, esi
je 0x4c4997
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x4c4997
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x5c], eax
jg 0x4c496d
call fcn.0048d6b0
test eax, eax
jne 0x4c4997
mov eax, dword [esp + 0x5c]
inc dword [edi + 0xc]
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x14]
lea eax, [eax + edx*4]
mov byte [eax], 0xf
mov ecx, dword [esp + 0x58]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax + 3], cl
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [edi + 0x62], cl
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x34], ecx
je 0x4c49b2
mov eax, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x2c], eax
jle 0x4c48a0
mov edx, dword [esp + 0x40]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov eax, dword [edx + 0x14]
mov dword [esp + 0x5c], eax
jg 0x4c49d0
mov edi, ebp
call fcn.0048d6b0
test eax, eax
jne 0x4c49ff
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
xor ecx, ecx
mov byte [eax], 7
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 + 0x62], cl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x4c4a12
mov edi, ebp
call fcn.0048d6b0
test eax, eax
jne 0x4c4a43
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x2c]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x68]
inc ecx
dec edx
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 7
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 + 0x62], cl
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx + 0x1c]
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx + 0x18]
neg eax
sbb eax, eax
and eax, 0xfffffff7
add eax, 0xfffffffe
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
jg 0x4c4a79
mov edi, ebp
call fcn.0048d6b0
test eax, eax
je 0x4c4a79
mov esi, 1
jmp 0x4c4ab0
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov byte [eax], 0x80
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 + 0x62], 0
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push eax
push ebp
mov eax, esi
call fcn.0048dd20
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x4c4b20
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add edi, 8
add edx, 4
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x40]
cmp byte [eax], 0
je 0x4c4b11
mov eax, dword [edi]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*8]
call fcn.004c3d90
add dword [esp + 0x40], 8
add edi, 0xc
sub dword [esp + 0x48], 1
jne 0x4c4af0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x54]
mov byte [eax + 0x35], 0x83
mov dword [eax + 0x38], ecx
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x3c], edx
mov eax, dword [esp + 0x68]
push eax
mov eax, edi
mov esi, ebx
call fcn.0049c070
add esp, 4
cmp edi, dword [ebx + 0x38]
jle 0x4c4b59
mov ecx, dword [esp + 0x68]
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], ecx
mov eax, ebx
call fcn.0049c0c0
jmp 0x4c568a
test edx, 0x1000
je 0x4c4c09
mov al, byte [ebx + 0x15]
test al, al
jne 0x4c4b84
inc dword [ebx + 0x48]
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x38], edx
jmp 0x4c4b94
dec al
mov byte [ebx + 0x15], al
movzx eax, al
mov ecx, dword [ebx + eax*4 + 0x18]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push 0
push 3
push edx
push eax
push 0xffffffffffffffff
push ebx
push ecx
call fcn.004c1260
mov edx, dword [esp + 0x54]
add esp, 0x1c
push edx
push esi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.004c3e40
mov edi, eax
mov eax, dword [esi + 0x28]
push 0
push eax
mov dword [esp + 0x4c], eax
push edi
push 0x15
mov eax, ebp
call fcn.0048d730
mov ecx, dword [esp + 0x54]
push edi
push ecx
push ebx
push 0x34
mov eax, ebp
call fcn.0048d730
mov edx, dword [esp + 0x48]
push 0xffffffffffffffff
push ebx
mov ebx, edi
call fcn.0049bf70
add esp, 0x38
mov byte [esi + 0x35], 0x89
mov ebx, edx
jmp 0x4c568a
test edx, 0x2000
je 0x4c4e1e
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push 0
push 0x24
push edx
push eax
push 0xffffffffffffffff
push ecx
push esi
mov dword [esp + 0x44], 0x89
mov dword [esp + 0x64], 0
call fcn.004c1260
mov edx, dword [esp + 0x90]
mov ecx, dword [esp + 0x30]
add esp, 0x1c
push 0
push 0x18
push edx
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push eax
push 0xffffffffffffffff
push ecx
push esi
call fcn.004c1260
add esp, 0x1c
mov dword [esp + 0x34], eax
test edi, edi
je 0x4c4c80
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x68], eax
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x68], 0
je 0x4c4cfc
mov edx, dword [esp + 0x68]
mov edi, dword [edx]
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x5c]
push eax
mov esi, ebx
mov byte [esp + 0x30], 0x2f
mov byte [esp + 0x31], 0x2d
mov byte [esp + 0x32], 0x2c
mov byte [esp + 0x33], 0x2e
call fcn.0049d4b0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
movzx eax, byte [edi]
push esi
push ecx
movzx ecx, byte [esp + eax - 0x19]
push edx
push ecx
mov eax, ebp
call fcn.0048d730
push esi
mov eax, 1
mov esi, ebx
call fcn.0049c070
mov esi, dword [esp + 0x70]
add esp, 0x14
mov edx, ebx
call fcn.0049e500
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov esi, edi
call fcn.004c3d90
jmp 0x4c4d22
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
xor ecx, ecx
test edi, edi
sete cl
push 0
push edx
push eax
mov eax, ebp
lea ecx, [ecx + ecx + 0x3f]
push ecx
call fcn.0048d730
mov edi, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x34], 0
je 0x4c4d84
mov edx, dword [esp + 0x34]
mov eax, dword [edx]
inc dword [ebx + 0x48]
mov esi, dword [ebx + 0x48]
mov dword [esp + 0x5c], eax
mov eax, dword [eax + 0xc]
mov ecx, ebx
mov dword [esp + 0x48], esi
call fcn.0049d530
mov eax, dword [esp + 0x5c]
mov al, byte [eax]
cmp al, 0x4f
je 0x4c4d68
cmp al, 0x4d
je 0x4c4d68
xor ecx, ecx
cmp dword [esp + 0x20], ecx
setne cl
lea ecx, [ecx + ecx + 0x4d]
mov dword [esp + 0x28], ecx
jmp 0x4c4d79
xor edx, edx
cmp dword [esp + 0x20], edx
sete dl
lea edx, [edx + edx + 0x4e]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x34]
mov esi, edi
call fcn.004c3d90
cmp dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
sete cl
add cl, 0x42
cmp dword [esp + 0x68], 0
mov byte [edi + 0x35], cl
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], eax
jne 0x4c4db1
cmp dword [esp + 0x34], 0
jne 0x4c4db1
mov byte [edi + 0x36], 1
cmp dword [esp + 0x28], 0x89
je 0x4c568a
mov esi, ebx
mov eax, esi
call fcn.0049e4e0
mov ebx, eax
push 0
push ebx
mov edi, edx
push edi
push 0x3d
mov eax, ebp
mov dword [esp + 0x48], ebx
call fcn.0048d730
push 0xffffffffffffffff
push edi
mov edx, esi
call fcn.0049bf70
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
push ebx
push eax
push ecx
push edx
mov eax, ebp
call fcn.0048d730
mov eax, dword [ebp + 0x14]
add esp, 0x28
mov ebx, esi
test eax, eax
je 0x4c568a
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x4c568a
test edx, 0x30000
je 0x4c52da
mov ebx, dword [esi + 0x20]
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 4]
xor eax, eax
test byte [esp + 0x6c], 1
mov dword [esp + 0x40], ebx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + ecx*4]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
je 0x4c4e6c
test edx, 0x1000000
je 0x4c4e6c
cmp dword [edi + 4], ecx
jle 0x4c4e6c
mov eax, 1
mov dword [esp + 0x50], eax
test edx, 0x100000
je 0x4c4e9d
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
push edi
push 0x18
push edx
mov edx, dword [esp + 0x30]
push eax
push ebx
push ecx
push edx
call fcn.004c1260
mov dword [esp + 0x44], eax
add esp, 0x1c
mov eax, 1
test dword [esi], 0x200000
je 0x4c4ece
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
push edi
push 0x24
push eax
mov eax, dword [esp + 0x30]
push ecx
push ebx
push edx
push eax
call fcn.004c1260
mov dword [esp + 0x48], eax
add esp, 0x1c
mov eax, 1
mov edx, dword [esp + 0x74]
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
push ebx
call fcn.004c4010
mov edx, dword [ebx]
mov ebx, dword [esp + 0x58]
add esp, 0x1c
push edx
mov dword [esp + 0x34], eax
call fcn.00475080
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x28]
add esp, 4
cmp ebx, dword [edi + 4]
mov dword [esp + 0x34], eax
jge 0x4c4f3b
mov ecx, dword [edi + 0x28]
xor edx, edx
cmp byte [ebx + ecx], dl
sete dl
cmp dword [esp + 0x20], edx
jne 0x4c4f3b
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
jmp 0x4c4f3f
mov eax, dword [esp + 0x2c]
xor ecx, ecx
cmp eax, ecx
je 0x4c4f54
test byte [eax + 0x10], 0x28
jne 0x4c4f54
mov dword [esp + 0x44], ecx
lea edx, [ecx + 1]
jmp 0x4c4f5d
mov edx, 1
mov dword [esp + 0x44], edx
mov esi, dword [esp + 0x28]
cmp esi, ecx
je 0x4c4f6f
test byte [esi + 0x10], 0x28
mov dword [esp + 0x58], ecx
je 0x4c4f73
mov dword [esp + 0x58], edx
cmp eax, ecx
jne 0x4c4f7f
cmp ebx, ecx
mov dword [esp + 0x48], ecx
jle 0x4c4f83
mov dword [esp + 0x48], edx
cmp eax, ecx
je 0x4c5022
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov ebx, dword [eax + 0xc]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
lea esi, [ecx + edi]
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x50], ebx
call fcn.0049d530
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x4c4fbc
cmp cl, 0x9c
jne 0x4c4fc1
mov eax, dword [eax + 8]
jmp 0x4c4fb0
mov cl, byte [eax]
cmp cl, 0x84
jne 0x4c4fcb
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x4c4fee
cmp cl, 0x80
jbe 0x4c4fda
cmp cl, 0x83
jbe 0x4c4fee
mov edx, dword [esp + 0x34]
push 0
push edx
push esi
push 0x49
mov eax, ebp
call fcn.0048d730
add esp, 0x10
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x4c501d
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x50]
call fcn.00499590
cmp al, 0x62
jne 0x4c5009
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x50]
call fcn.0049abb0
test eax, eax
je 0x4c501d
mov byte [esi + edi], 0x62
lea ebx, [edi + 1]
jmp 0x4c507a
cmp dword [esp + 0x50], ecx
je 0x4c507a
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x4c5042
mov edi, ebp
call fcn.0048d6b0
xor ecx, ecx
mov edx, 1
test eax, eax
jne 0x4c5071
add dword [ebp + 0xc], edx
lea eax, [esi + esi*4]
mov esi, dword [ebp + 0x14]
lea eax, [esi + eax*4]
mov esi, dword [esp + 0x30]
mov edi, ebx
add esi, edi
mov byte [eax], 0xa
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], 0
mov byte [ebp + 0x62], 0
inc ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
push esi
push ecx
mov ecx, ebx
call fcn.004c3dd0
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
lea ecx, [edx + eax*2]
mov edx, dword [esp + 0x28]
movzx eax, byte [edx + ecx*2 + 0x535ddc]
mov ecx, dword [esp + 0x3c]
push ebx
push eax
mov eax, esi
mov esi, dword [esp + 0x50]
push ebp
mov edx, esi
call fcn.0048d850
mov edi, dword [esp + 0x7c]
add esp, 0x14
cmp dword [esp + 0x28], 0
je 0x4c5192
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edx, dword [ecx]
mov ebx, dword [edx + 0xc]
mov esi, dword [esp + 0x18]
add eax, edi
mov dword [esp + 0x50], eax
push eax
mov eax, 1
mov dword [esp + 0x4c], ebx
call fcn.0049c070
mov esi, dword [esp + 0x54]
mov ecx, dword [esp + 0x1c]
add esp, 4
mov eax, ebx
call fcn.0049d530
mov eax, ebx
mov cl, byte [eax]
cmp cl, 0x9d
je 0x4c5112
cmp cl, 0x9c
jne 0x4c5117
mov eax, dword [eax + 8]
jmp 0x4c5106
mov cl, byte [eax]
cmp cl, 0x84
jne 0x4c5121
mov cl, byte [eax + 0x23]
cmp cl, 0x5e
je 0x4c5148
cmp cl, 0x80
jbe 0x4c5130
cmp cl, 0x83
jbe 0x4c5148
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
push 0
push ecx
push edx
push 0x49
mov eax, ebp
call fcn.0048d730
add esp, 0x10
mov esi, dword [esp + 0x54]
test esi, esi
je 0x4c5177
mov bl, byte [esi + edi]
mov eax, dword [esp + 0x48]
call fcn.00499590
cmp al, 0x62
jne 0x4c5163
mov byte [esi + edi], al
mov dl, byte [esi + edi]
mov ecx, dword [esp + 0x48]
call fcn.0049abb0
test eax, eax
je 0x4c5177
mov byte [esi + edi], 0x62
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push eax
inc edi
push ecx
mov eax, esi
mov ecx, edi
call fcn.004c3dd0
mov esi, dword [esp + 0x48]
add esp, 8
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx]
push edx
push eax
call fcn.00474d20
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx]
push ecx
push edx
call fcn.00474d20
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
cmp dword [esp + 0x28], 0
mov dword [ecx + 0x3c], eax
jne 0x4c51cf
cmp dword [esp + 0x68], 0
jne 0x4c51cf
xor eax, eax
jmp 0x4c51d4
mov eax, 1
mov ebx, dword [esp + 0x20]
lea edx, [ebx + 1]
imul edx, eax
movzx eax, byte [edx + 0x535de4]
cmp eax, 0x89
je 0x4c5219
mov ecx, dword [esp + 0x34]
push edi
push eax
mov eax, dword [esp + 0x38]
push ebp
mov edx, esi
call fcn.0048d850
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4c5219
cmp dword [esp + 0x58], ebx
mov ecx, dword [ebp + 0xc]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, dword [esp + 0x18]
call fcn.0049e4e0
mov edx, dword [esp + 0x1c]
test dword [edx], 0x300000
mov ebx, eax
je 0x4c5254
mov eax, dword [esp + 0x68]
push ebx
push eax
push esi
push 0x1c
mov eax, ebp
call fcn.0048d730
mov ecx, dword [esp + 0x5c]
push 0
push ecx
push ebx
push 0x49
mov eax, ebp
call fcn.0048d730
add esp, 0x20
mov edi, dword [esp + 0x18]
mov esi, ebx
mov edx, edi
call fcn.0049e500
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
call fcn.004c3d90
mov eax, dword [esp + 0x28]
call fcn.004c3d90
cmp dword [esp + 0x5c], 0
jne 0x4c52be
mov eax, edi
call fcn.0049e4e0
mov edx, dword [esp + 0x40]
mov ebx, eax
push 0
push ebx
push edx
push 0x48
mov eax, ebp
mov dword [esp + 0x48], ebx
call fcn.0048d730
mov eax, dword [esp + 0x24]
push 0xffffffffffffffff
push eax
mov edx, edi
call fcn.0049bf70
mov ecx, dword [esp + 0x2c]
push 0
push ebx
push ecx
push 0x30
mov eax, ebp
call fcn.0048d730
add esp, 0x28
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x40]
sete dl
add dl, 0x42
mov byte [esi + 0x35], dl
mov dword [esi + 0x38], eax
mov ebx, edi
jmp 0x4c568a
test edx, 0x10000000
je 0x4c5658
inc dword [ebx + 0x48]
mov edi, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x58], eax
mov eax, ebp
mov dword [esp + 0x40], edi
call fcn.0048d8c0
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x20], eax
mov byte [esi + 0x35], 3
mov dword [esi + 0x38], edi
mov eax, dword [ecx + 0x18]
cmp eax, 1
mov dword [esp + 0x50], 0
jle 0x4c53df
sub eax, dword [esp + 0x68]
mov esi, dword [ebx]
dec eax
lea ecx, [eax*8]
sub ecx, eax
lea ecx, [ecx*8 + 0x40]
mov dword [esp + 0x5c], eax
call fcn.00474f60
mov dword [esp + 0x34], eax
test eax, eax
je 0x4c57fd
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x44]
lea ecx, [eax + 1]
mov word [edx + 2], cx
mov word [edx], cx
lea edi, [edx + 8]
mov ecx, 0xe
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 8]
add ecx, 8
cmp eax, 1
mov dword [esp + 0x3c], ecx
jl 0x4c53e6
add edx, 0x40
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x1c]
add edx, 0x84
mov dword [esp + 0x5c], eax
jmp 0x4c53b0
movzx eax, byte [edx]
mov edi, dword [esp + 0x48]
add dword [esp + 0x48], 0x38
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x3c]
lea esi, [eax + ecx*8]
mov ecx, 0xe
add edx, 0x50
sub dword [esp + 0x5c], 1
rep movsd dword es:[edi], dword [esi]
jne 0x4c53b0
jmp 0x4c53e6
mov ecx, dword [ecx + 8]
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x6c]
and eax, 8
mov dword [esp + 0x28], eax
jne 0x4c5445
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 + 0x30], ecx
mov dword [esp + 0x58], eax
jg 0x4c541e
mov edi, ebp
call fcn.0048d6b0
test eax, eax
jne 0x4c5445
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor edx, edx
mov byte [eax], 0xa
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 + 0x62], dl
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
jg 0x4c5462
mov edi, ebp
call fcn.0048d6b0
test eax, eax
je 0x4c5462
mov dword [esp + 0x5c], 1
jmp 0x4c5491
mov edx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x40]
xor ecx, ecx
mov byte [eax], 7
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 + 0x62], cl
mov dword [esp + 0x5c], esi
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp dword [ecx + 0x14], eax
mov dword [esp + 0x3c], eax
jle 0x4c55ac
mov esi, dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea esp, [esp]
mov eax, dword [ecx + 0x1c]
add eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x14]
je 0x4c54cf
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x4c5591
mov eax, dword [eax]
push 0xf0
push 0
push eax
push esi
push ebx
call fcn.004c58d0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4c5591
mov ecx, dword [esp + 0x1c]
movzx edx, byte [ecx + 0x34]
mov eax, dword [esp + 0x68]
push 0
push edx
push eax
lea ecx, [edi + 0x30]
push ecx
push esi
mov eax, ebx
call fcn.004c4450
add esp, 0x14
cmp word [esp + 0x28], 0
jne 0x4c5562
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x14]
dec eax
cmp dword [esp + 0x3c], eax
jne 0x4c5527
or esi, 0xffffffff
jmp 0x4c552b
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [eax + 0xc]
push edx
push 0xffffffffffffffff
push ecx
push ebx
call fcn.0049c110
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x44]
add esp, 0x14
push esi
push 0x6b
add ecx, 2
push ebp
call fcn.0048d850
mov esi, dword [esp + 0x40]
add esp, 0xc
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x40]
push 0
push edx
push eax
push 2
mov eax, ebp
call fcn.0048d730
add esp, 0x10
cmp byte [edi + 7], 0
je 0x4c5588
mov dword [esp + 0x50], 1
push edi
call fcn.004c6330
add esp, 4
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x48], 0x28
inc eax
cmp eax, dword [ecx + 0x14]
mov dword [esp + 0x3c], eax
jl 0x4c54b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jle 0x4c55c1
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x68], ecx
jg 0x4c55df
mov edi, ebp
call fcn.0048d6b0
test eax, eax
jne 0x4c560e
mov eax, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov ecx, dword [esp + 0x68]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
xor esi, esi
mov byte [eax], 1
mov byte [eax + 3], 0
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0
mov byte [ebp + 0x62], 0
jmp 0x4c5610
xor esi, esi
mov eax, dword [ebp + 0x20]
cmp eax, esi
je 0x4c5629
mov edx, dword [esp + 0x54]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [eax], edx
mov eax, dword [esp + 0x64]
cmp dword [eax + 0x18], 1
jle 0x4c5643
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx]
push ecx
push edx
call fcn.00474d20
add esp, 8
cmp dword [esp + 0x50], esi
jne 0x4c568a
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
call fcn.004c3d90
jmp 0x4c568a
mov al, byte [edi + 0x535de8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
push 0
mov byte [esi + 0x35], al
mov dword [esi + 0x38], ecx
movzx eax, byte [edi + 0x535dec]
push edx
push ecx
push eax
mov eax, ebp
call fcn.0048d730
add esp, 0x10
inc eax
mov dword [esi + 0x3c], eax
mov byte [esi + 0x36], 1
mov esi, dword [esp + 0x24]
mov edx, dword [esi + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x4c56ac
mov edi, dword [esp + 0x14]
add edx, 4
cmp dword [edx], edi
je 0x4c56e8
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4c56a0
xor eax, eax
xor edx, edx
mov edi, dword [esi + 0x1c]
mov esi, dword [esi + 0x14]
not eax
and dword [esp + 0x70], eax
not edx
and dword [esp + 0x74], edx
test esi, esi
jle 0x4c5725
test byte [edi + 0x12], 6
jne 0x4c571d
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
je 0x4c56f6
mov eax, dword [esp + 0x64]
mov byte [eax + 7], 1
jmp 0x4c571d
mov eax, 1
xor edx, edx
call fcn.004f79e0
jmp 0x4c56b0
mov ecx, dword [esp + 0x1c]
cmp dword [ecx + 0x18], 0
mov eax, dword [edi]
je 0x4c5708
test byte [eax + 2], 1
je 0x4c571d
mov edx, dword [esp + 0x4c]
push 8
push edx
push eax
push ebx
call fcn.0049dcb0
add esp, 0x10
or byte [edi + 0x12], 4
dec esi
add edi, 0x28
test esi, esi
jg 0x4c56c6
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x18], 0
je 0x4c57d0
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax + 0x18]
mov dword [eax + 0x30], ecx
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], esi
mov dword [esp + 0x64], edx
jg 0x4c5753
mov edi, ebp
call fcn.0048d6b0
test eax, eax
jne 0x4c5783
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 + 0x64]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 7
mov byte [eax + 3], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
mov byte [ebp + 0x62], cl
mov edx, ebx
call fcn.0049c230
mov ebp, dword [esp + 0x24]
mov edi, dword [ebp + 0x1c]
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x4c57d0
test byte [edi + 0x12], 6
jne 0x4c57c7
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x24]
and eax, dword [esp + 0x70]
and ecx, dword [esp + 0x74]
or eax, ecx
jne 0x4c57c7
mov edx, dword [esp + 0x4c]
mov eax, dword [edi]
push 8
push edx
push eax
push ebx
call fcn.0049dcb0
add esp, 0x10
or byte [edi + 0x12], 4
inc esi
add edi, 0x28
cmp esi, dword [ebp + 0x14]
jl 0x4c5798
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4c57fd
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x4c57fd
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x4c580d
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4c57e5
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov byte [ecx + 8], 1
pop ebx
add esp, 0x50
ret