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

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [eax]
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x1c]
shl esi, 6
lea esi, [esi + eax + 0x20]
mov eax, dword [eax + 8]
mov dword [esp + 0x30], ecx
movzx ecx, byte [esi + 0x28]
push edi
lea edi, [ecx*8]
sub edi, ecx
lea eax, [eax + edi*8 + 8]
mov edi, dword [eax + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov ebx, eax
shr ebx, 0x19
xor edx, edx
and ebx, 1
mov dword [esp + 0x58], edx
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x48], ebx
test eax, 0x800000
je 0x4e4903
test byte [esp + 0xb0], 0x40
mov dword [esp + 0x28], 1
je 0x4e4907
mov dword [esp + 0x28], edx
mov eax, ebp
call fcn.004bc2e0
mov dword [esp + 0x2c], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov eax, ebp
call fcn.004bc2e0
cmp byte [esi + 0x28], 0
mov dword [esp + 0x5c], eax
mov dword [esi + 0x20], eax
jbe 0x4e4952
mov ecx, dword [esp + 0x18]
test byte [ecx + 0x15], 8
je 0x4e4952
mov eax, dword [esp + 0x10]
inc dword [eax + 0x48]
mov eax, dword [eax + 0x48]
push eax
mov dword [esi + 0xc], eax
push 0
push 0x30
mov eax, ebp
call fcn.004bc280
add esp, 0xc
mov eax, dword [esi]
test eax, 0x8000000
je 0x4e4c0d
mov eax, dword [esi + 8]
mov edi, dword [eax]
mov edx, dword [eax + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
lea eax, [edi + 2]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], eax
call fcn.004b5800
add esp, 4
cmp edi, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
jl 0x4e4a79
jmp 0x4e49a9
mov edi, dword [esp + 0x14]
xor ebx, ebx
test edi, edi
jle 0x4e4a60
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
nop
cmp dword [edx + ebx*8], eax
je 0x4e49cf
inc ebx
cmp ebx, ecx
jl 0x4e49c0
jmp 0x4e4a60
mov ecx, dword [esp + 0x20]
lea edi, [eax + ecx + 1]
mov eax, dword [esp + 0x18]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x34]
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 + 0x10]
push edi
push eax
push edx
mov dword [esp + 0x60], edi
call fcn.004e29d0
add esp, 0xc
mov dword [esp + 0x44], eax
cmp eax, edi
je 0x4e4a60
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0xc]
test edi, edi
je 0x4e4a60
mov eax, dword [edi + 0xc]
cmp dword [edi + 0x10], eax
mov dword [esp + 0x28], eax
jg 0x4e4a2d
call fcn.004bc100
test eax, eax
jne 0x4e4a60
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 + 0x44]
mov edx, dword [esp + 0x54]
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 + 0x14]
je 0x4e4a79
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jle 0x4e49a5
mov eax, dword [esp + 0x38]
mov ebx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x28], ecx
jg 0x4e4a97
mov edi, ebp
call fcn.004bc100
test eax, eax
jne 0x4e4ac6
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 0x4e4ad9
mov edi, ebp
call fcn.004bc100
test eax, eax
jne 0x4e4b0a
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
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 + 0x38]
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 + 0x44], eax
mov dword [esp + 0x28], edx
jg 0x4e4b40
mov edi, ebp
call fcn.004bc100
test eax, eax
je 0x4e4b40
mov ebx, 1
jmp 0x4e4b77
mov ecx, dword [ebp + 0x14]
inc dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
lea eax, [ebx + ebx*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x2c]
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 + 0x44]
push eax
push ebp
mov eax, ebx
call fcn.004bc690
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add esp, 8
mov dword [ecx + 0x1c], 0
test eax, eax
jle 0x4e4bda
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x40]
add edi, 8
add ebx, 4
mov dword [esp + 0x18], eax
cmp byte [ebx], 0
je 0x4e4bcd
mov eax, dword [edi]
mov esi, dword [esp + 0x30]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x1c]
lea eax, [ecx + edx*8]
call fcn.004b7570
add ebx, 8
add edi, 0xc
sub dword [esp + 0x18], 1
jne 0x4e4bb0
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x24]
mov byte [esi + 0x29], 1
mov dword [esi + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x10]
cmp ecx, dword [eax + 0x38]
mov ebx, eax
jle 0x4e5521
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3c], ecx
jmp 0x4e5521
test eax, 0x1000
je 0x4e4cb5
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x15]
test al, al
jne 0x4e4c2f
inc dword [ecx + 0x48]
mov edx, dword [ecx + 0x48]
mov dword [esp + 0x58], edx
jmp 0x4e4c3f
dec al
mov byte [ecx + 0x15], al
movzx eax, al
mov ecx, dword [ecx + eax*4 + 0x18]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0x34]
push 0
push 3
push edx
push eax
push edi
push ecx
or ebx, 0xffffffff
call fcn.004d8b10
mov edx, dword [esp + 0x70]
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ebx, esi
call fcn.004e45c0
mov ebx, eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x48], eax
push ebx
push 0x26
mov eax, ebp
call fcn.004bc280
mov ecx, dword [esp + 0x50]
push ebx
push ecx
push edi
push 0x2e
mov eax, ebp
call fcn.004bc180
mov ecx, dword [esp + 0x50]
add esp, 0x40
push ebx
push 0xffffffffffffffff
push edi
call fcn.004b53f0
add esp, 0xc
mov byte [esi + 0x29], 0x18
mov ebx, ecx
jmp 0x4e5521
test eax, 0x2000
je 0x4e4ecc
mov edx, dword [esp + 0xb8]
mov esi, dword [esp + 0xb4]
mov eax, dword [esp + 0x34]
push 0
push 0x24
push edx
push esi
push edi
push eax
or ebx, 0xffffffff
mov dword [esp + 0x38], 0x18
mov dword [esp + 0x30], 0
call fcn.004d8b10
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0x4c]
push 0
push 0x18
push ecx
push esi
push edi
push edx
or ebx, ebx
mov dword [esp + 0x54], eax
call fcn.004d8b10
mov ecx, dword [esp + 0x78]
add esp, 0x30
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4e4d2b
mov edx, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], 0
je 0x4e4da6
mov eax, dword [esp + 0x24]
mov edi, dword [eax]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [edi + 0xc]
mov esi, ebx
mov byte [esp + 0x20], 0x7b
mov byte [esp + 0x21], 0x37
mov byte [esp + 0x22], 0x46
mov byte [esp + 0x23], 0x6d
call fcn.004bd6c0
movzx ecx, byte [edi]
mov edx, dword [esp + 0x30]
mov esi, eax
mov eax, dword [esp + 0x40]
push esi
push edx
movzx edx, byte [esp + ecx - 0x23]
push eax
push edx
mov eax, ebp
call fcn.004bc180
push ebx
mov eax, 1
call fcn.004b5620
mov esi, dword [esp + 0x40]
add esp, 0x18
mov edx, ebx
call fcn.004b57d0
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x30]
call fcn.004b7570
mov eax, esi
jmp 0x4e4dc9
mov eax, dword [esp + 0x2c]
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xffffffbc
add ecx, 0x7a
push edi
push ecx
mov eax, ebp
call fcn.004bc280
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp dword [esp + 0x14], 0
je 0x4e4e2f
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
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 + 0x18], esi
call fcn.004bd740
mov edx, dword [esp + 0x28]
mov al, byte [edx]
cmp al, 0x4d
je 0x4e4e0f
cmp al, 0x4b
je 0x4e4e0f
xor eax, eax
cmp dword [esp + 0x48], eax
setne al
lea eax, [eax + eax + 0x4b]
mov dword [esp + 0x20], eax
jmp 0x4e4e20
xor ecx, ecx
cmp dword [esp + 0x48], ecx
sete cl
lea ecx, [ecx + ecx + 0x4c]
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.004b7570
mov eax, esi
mov edx, dword [esp + 0x48]
mov esi, dword [ebp + 0xc]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
cmp dword [esp + 0x24], 0
mov byte [eax + 0x29], dl
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], esi
jne 0x4e4e62
cmp dword [esp + 0x14], 0
jne 0x4e4e62
mov ecx, 1
jmp 0x4e4e64
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov byte [eax + 0x2a], cl
cmp edi, 0x18
je 0x4e5521
mov eax, ebx
call fcn.004b57b0
mov esi, eax
push esi
push edx
push 0x28
mov eax, ebp
mov dword [esp + 0x64], esi
call fcn.004bc280
mov eax, dword [esp + 0x48]
push esi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.004b53f0
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
push esi
push ecx
push edx
push edi
mov eax, ebp
call fcn.004bc180
mov eax, dword [ebp + 0x14]
add esp, 0x28
test eax, eax
je 0x4e5521
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x6b
jmp 0x4e5521
test eax, 0x30000
je 0x4e5312
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x50]
mov edx, dword [edx + 8]
mov edx, dword [edx + ecx*4]
xor eax, eax
test byte [esp + 0xb0], 1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], 0x7a
mov dword [esp + 0x78], 0x36
mov dword [esp + 0x7c], 0x7b
mov dword [esp + 0x80], 0x46
mov dword [esp + 0x84], 0x6d
mov dword [esp + 0x88], 0x37
mov dword [esp + 0x60], 0x18
mov dword [esp + 0x64], 0x3f
mov dword [esp + 0x68], 0x29
mov dword [esp + 0x24], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x18], edx
je 0x4e4f85
test dword [esi], 0x1000000
je 0x4e4f85
mov edx, dword [esp + 0x50]
cmp dword [edx + 4], ecx
jle 0x4e4f85
mov eax, 1
mov dword [esp + 0x54], eax
test dword [esi], 0x100000
je 0x4e4fc3
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x38]
push 0x18
push ecx
push edx
push edi
push eax
call fcn.004d8b10
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
add esp, 0x18
mov eax, 1
test dword [esi], 0x200000
je 0x4e5001
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x38]
push 0x24
push edx
push eax
push edi
push ecx
call fcn.004d8b10
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
add esp, 0x18
mov eax, 1
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0xb8]
push edx
mov edx, dword [esp + 0x18]
push eax
push ecx
push esi
push edx
call fcn.004e4720
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov ecx, dword [edx + 0x28]
xor edx, edx
add esp, 0x18
cmp byte [edi + ecx], dl
mov dword [esp + 0x38], eax
sete dl
cmp ebx, edx
jne 0x4e5059
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x14], ecx
jmp 0x4e5061
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x4c]
xor ebx, ebx
cmp ecx, ebx
je 0x4e5071
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x40], ebx
je 0x4e5079
mov dword [esp + 0x40], 1
cmp edx, ebx
je 0x4e5087
test byte [edx + 0x10], 0x28
mov dword [esp + 0x44], ebx
je 0x4e508f
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x4e509b
cmp edi, ebx
mov dword [esp + 0x18], ebx
jle 0x4e50a3
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], edi
cmp ecx, ebx
je 0x4e50e3
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov edx, dword [ecx]
mov ebx, edi
mov edi, dword [esp + 0x10]
lea esi, [eax + ebx]
mov eax, dword [edx + 0xc]
call fcn.004bd740
mov eax, dword [esp + 0x20]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.004bc280
mov esi, dword [esp + 0x3c]
add esp, 0xc
inc ebx
mov dword [esp + 0x1c], ebx
jmp 0x4e510a
cmp dword [esp + 0x54], ebx
je 0x4e510a
add eax, edi
push eax
push ebx
push 0x77
mov eax, ebp
call fcn.004bc280
add esp, 0xc
inc edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push ecx
push edx
call fcn.004bf600
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x5c]
lea ecx, [eax + edx*2]
mov edx, dword [esp + ecx*4 + 0x80]
push edx
mov eax, ebp
call fcn.004bc180
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp]
add esp, 0x18
test ecx, ecx
je 0x4e518b
cmp byte [edi + 0x1e], 0
jne 0x4e518b
test eax, eax
jge 0x4e516c
mov eax, dword [ebp + 0xc]
dec eax
lea eax, [eax + eax*4]
lea ebx, [ecx + eax*4]
movsx eax, byte [ebx + 1]
mov ecx, dword [ebx + 0x10]
call fcn.004bc5c0
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x10], ecx
mov byte [ebx + 1], 0xf2
jmp 0x4e5199
mov ecx, dword [esp + 0x1c]
mov eax, 0xfffffff2
call fcn.004bc5c0
cmp dword [esp + 0x4c], 0
mov edi, dword [esp + 0x24]
je 0x4e51f3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
mov eax, edi
lea esi, [edx + eax]
push esi
mov edx, ebx
call fcn.004b5530
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
mov edi, ebx
call fcn.004bd740
mov eax, dword [esp + 0x24]
push eax
push esi
push 0x47
mov eax, ebp
call fcn.004bc280
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x34]
push ecx
inc edi
push edx
call fcn.004bf600
mov esi, dword [esp + 0x48]
add esp, 0x18
cmp dword [esp + 0x4c], 0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
jne 0x4e520b
cmp dword [esp + 0x24], 0
jne 0x4e520b
xor eax, eax
jmp 0x4e5210
mov eax, 1
mov ebx, dword [esp + 0x48]
lea ecx, [ebx + 1]
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x60]
cmp eax, 0x18
je 0x4e5255
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push 0xfffffffffffffff2
push edi
push eax
mov eax, dword [esp + 0x44]
mov edi, ebp
call fcn.004c2560
mov eax, dword [ebp + 0x14]
add esp, 0xc
test eax, eax
je 0x4e5255
cmp dword [esp + 0x44], ebx
mov ecx, dword [ebp + 0xc]
setne dl
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], dl
mov eax, dword [esp + 0x10]
call fcn.004b57b0
test dword [esi], 0x300000
mov edi, eax
je 0x4e528e
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edi
push edx
push eax
push 3
mov eax, ebp
call fcn.004bc180
mov ecx, dword [esp + 0x6c]
push ecx
push edi
push 0x47
mov eax, ebp
call fcn.004bc280
add esp, 0x1c
mov ebx, dword [esp + 0x10]
mov esi, edi
mov edx, ebx
call fcn.004b57d0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
call fcn.004b7570
mov eax, dword [esp + 0x4c]
call fcn.004b7570
cmp dword [esp + 0x28], 0
jne 0x4e52f5
mov eax, ebx
call fcn.004b57b0
mov edx, dword [esp + 0x2c]
mov edi, eax
push edi
push edx
push 0x39
mov eax, ebp
mov dword [esp + 0x64], edi
call fcn.004bc280
mov eax, dword [esp + 0x48]
push edi
push 0xffffffffffffffff
push eax
mov ecx, ebx
call fcn.004b53f0
mov ecx, dword [esp + 0x54]
push edi
push ecx
push 5
mov eax, ebp
call fcn.004bc280
add esp, 0x24
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x2c]
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6a
mov byte [esi + 0x29], dl
mov dword [esi + 0x2c], eax
jmp 0x4e5521
test eax, 0x10000000
je 0x4e54f1
mov ebx, dword [esp + 0x10]
inc dword [ebx + 0x48]
mov ecx, dword [ebx + 0x48]
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], eax
mov eax, ebp
mov dword [esp + 0x1c], ecx
call fcn.004bc2e0
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [eax + 0xc]
mov ecx, 1
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xb0]
mov edx, ecx
mov word [esp + 0x6c], cx
mov ecx, 0xe
lea edi, [esp + 0x74]
and eax, 8
mov word [esp + 0x6e], dx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x20], eax
jne 0x4e53a3
mov eax, dword [ebx + 0x48]
lea ecx, [eax + 1]
lea eax, [ecx + 1]
push ecx
mov dword [ebx + 0x48], eax
mov dword [esp + 0x2c], eax
push 0
push 0x77
mov eax, ebp
mov dword [esp + 0x50], ecx
call fcn.004bc280
add esp, 0xc
mov eax, dword [esp + 0x1c]
push eax
xor esi, esi
push esi
push 0x30
mov eax, ebp
call fcn.004bc280
mov edi, dword [esp + 0x60]
add esp, 0xc
cmp dword [edi + 0x14], esi
mov ecx, eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], esi
jle 0x4e5497
mov dword [esp + 0x40], esi
mov eax, dword [edi + 0x1c]
add eax, dword [esp + 0x40]
mov ecx, dword [eax + 8]
cmp ecx, dword [esp + 0x3c]
je 0x4e53f1
mov edx, 0x200
cmp word [eax + 0x10], dx
jne 0x4e547c
mov eax, dword [eax]
push 0x70
push 0
push eax
lea ecx, [esp + 0x78]
push ecx
push ebx
call fcn.004e56f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4e547c
cmp word [esp + 0x20], 0
jne 0x4e5460
mov edx, dword [edi + 0x14]
dec edx
cmp dword [esp + 0x2c], edx
jne 0x4e5423
or edi, 0xffffffff
jmp 0x4e5427
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [edx + 0xc]
push ecx
push 0xffffffffffffffff
push eax
push ebx
xor eax, eax
call fcn.004df030
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x58]
push 0xfffffffffffffff2
push edi
add ecx, 2
push 0x71
mov edi, ebp
call fcn.004c2560
mov edi, dword [esp + 0x74]
add esp, 0x20
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push 0x2f
mov eax, ebp
call fcn.004bc280
push esi
call fcn.004bf710
add esp, 0x10
mov eax, dword [esp + 0x2c]
add dword [esp + 0x40], 0x28
inc eax
cmp eax, dword [edi + 0x14]
mov dword [esp + 0x2c], eax
jl 0x4e53d2
mov ecx, dword [esp + 0x38]
mov eax, dword [ebp + 0xc]
cmp eax, ecx
jle 0x4e54a8
mov edx, dword [ebp + 0x14]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x18]
push ecx
push 0
push 0x60
mov eax, ebp
call fcn.004bc280
mov eax, dword [ebp + 0x20]
add esp, 0xc
test eax, eax
je 0x4e54d7
mov edx, dword [esp + 0x14]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0xc]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x2c], eax
mov eax, dword [esp + 0x24]
mov byte [esi + 0x29], 0x19
call fcn.004b7570
jmp 0x4e5521
mov cl, byte [ebx + 0x57fe20]
mov edx, dword [esp + 0x2c]
mov byte [esi + 0x29], cl
mov dword [esi + 0x2c], edi
movzx eax, byte [ebx + 0x57fe24]
push edx
push edi
push eax
mov eax, ebp
call fcn.004bc280
mov ebx, dword [esp + 0x1c]
add esp, 0xc
inc eax
mov dword [esi + 0x30], eax
mov byte [esi + 0x2a], 1
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
jle 0x4e5547
add edx, 4
mov esi, dword [esp + 0x3c]
cmp dword [edx], esi
je 0x4e56b6
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4e5533
xor eax, eax
xor edx, edx
not eax
and dword [esp + 0xb4], eax
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x14]
mov esi, dword [eax + 0x1c]
not edx
and dword [esp + 0xb8], edx
test edi, edi
jle 0x4e55bd
jmp 0x4e5570
test byte [esi + 0x12], 6
jne 0x4e55b5
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4e55b5
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
mov eax, dword [esi]
je 0x4e55a0
test byte [eax + 2], 1
je 0x4e55b5
mov ecx, dword [esp + 0x5c]
push 8
push ecx
push eax
push ebx
call fcn.004d4950
add esp, 0x10
or byte [esi + 0x12], 4
dec edi
add esi, 0x28
test edi, edi
jg 0x4e5570
mov edx, dword [esp + 0x30]
cmp dword [edx + 0xc], 0
je 0x4e5670
mov ecx, dword [ebp + 0xc]
mov eax, edx
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 0x4e55ed
mov edi, ebp
call fcn.004bc100
test eax, eax
jne 0x4e561d
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 + 0x34]
mov edx, ebx
call fcn.004b55d0
mov esi, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0x14], edi
jle 0x4e5670
test byte [esi + 0x12], 6
jne 0x4e5667
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
and eax, dword [esp + 0xb4]
and ecx, dword [esp + 0xb8]
or eax, ecx
jne 0x4e5667
mov edx, dword [esp + 0x5c]
mov eax, dword [esi]
push 8
push edx
push eax
push ebx
call fcn.004d4950
add esp, 0x10
or byte [esi + 0x12], 4
inc edi
add esi, 0x28
cmp edi, dword [ebp + 0x14]
jl 0x4e5632
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4e569d
mov dl, byte [ebx + 0x15]
cmp dl, 8
jae 0x4e569d
xor eax, eax
lea ecx, [ebx + 0x60]
cmp dword [ecx + 0x10], esi
je 0x4e56c7
inc eax
add ecx, 0x18
cmp eax, 0xa
jl 0x4e5685
movzx ecx, dl
mov dword [ebx + ecx*4 + 0x18], esi
inc byte [ebx + 0x15]
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
mov eax, 1
xor edx, edx
call fcn.00530d40
jmp 0x4e554b
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov byte [ecx + 9], 1
pop ebx
add esp, 0x9c
ret