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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc8
mov eax, dword [0x70a034]
xor eax, esp
mov dword [esp + 0xc4], eax
push esi
push edi
mov dword [esp + 0x64], edx
mov esi, ecx
mov dword [esp + 0x20], esi
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x8c], eax
or eax, 0xffffffff
mov dword [esp + 0x5c], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x24], 0
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], eax
mov byte [esp + 0x17], al
mov byte [esp + 0x2f], al
mov dword [esp + 0x4c], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x68], eax
mov eax, dword [esi]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x7c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x48], eax
jne 0x4d5fad
cmp byte [eax + 0x51], 0
jne 0x4d5fad
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x4d4dfa
test dword [ecx + 8], 0x200
je 0x4d4dfa
cmp dword [ecx + 0x34], 0
jne 0x4d4dfa
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov edx, ecx
mov dword [ecx], 0
mov ecx, eax
push 1
call fcn.004de400
add esp, 4
mov dword [esp + 0x40], 0
mov edx, dword [esp + 0x64]
mov ecx, esi
call fcn.004cd640
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x4d5fa9
mov ecx, dword [edi + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x4d4e43
mov eax, dword [esp + 0x48]
xor edx, edx
mov dword [esp + 0x1c], edx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x4d4e43
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4d4e37
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x48]
mov ecx, edx
add ecx, ecx
mov edx, 0x12
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
mov ecx, esi
push 0
push dword [edi]
call fcn.004c5240
add esp, 0xc
test eax, eax
jne 0x4d5fa9
mov eax, dword [edi + 0x24]
mov edx, edi
shr eax, 5
mov ecx, esi
and eax, 0xffffff01
mov dword [esp + 0x84], eax
lea eax, [esp + 0x80]
push eax
push 0
push 0x7b
call fcn.004ea880
add esp, 0xc
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0xc]
mov edx, edi
mov ecx, esi
mov dword [esp + 0x58], eax
call fcn.004c8c50
test eax, eax
jne 0x4d5fa9
push dword [esp + 0x80]
mov edx, edi
mov ecx, esi
call fcn.004cd750
add esp, 4
test eax, eax
jne 0x4d5fa9
mov ecx, esi
call fcn.004e15a0
mov edi, eax
mov dword [esp + 0x3c], edi
test edi, edi
je 0x4d5fa9
cmp byte [esi + 0x12], 0
jne 0x4d4eef
or dword [edi + 0x98], 0x20
cmp dword [esp + 0x40], 0
jne 0x4d4f01
cmp dword [esp + 0x60], 0
jne 0x4d4f01
xor edx, edx
jmp 0x4d4f06
mov edx, 1
push dword [esp + 0x1c]
mov ecx, esi
call fcn.004cbeb0
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x4d4f3c
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esp + 0x48]
call fcn.004d8050
add esp, 0xc
test eax, eax
jne 0x4d5f0a
push dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004d49b0
mov ecx, dword [esi + 0x2c]
add esp, 4
mov edx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
lea eax, [ecx + 1]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x38], eax
movsx eax, word [edx + 0x2a]
inc eax
add eax, ecx
mov dword [esi + 0x2c], eax
cmp dword [edx + 0x38], 0
je 0x4d4f81
add ecx, 2
inc eax
mov dword [esp + 0x38], ecx
mov dword [esi + 0x2c], eax
jmp 0x4d4f85
mov ecx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov ecx, dword [edx + 0x24]
shr ecx, 7
not cl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x10]
and ecx, 0xffffff01
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4d50dc
xor ecx, ecx
cmp dword [eax + 4], ecx
jle 0x4d4fcb
mov edi, eax
mov eax, dword [edi]
mov dword [eax + ecx*8 + 4], 0xffffffff
inc ecx
cmp ecx, dword [edi + 4]
jl 0x4d4fb3
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
mov dword [esp + 0x18], 0
jle 0x4d50dc
nop dword [eax]
movsx eax, word [edx + 0x2a]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x4d5083
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
lea eax, [eax + ecx*8]
mov dword [esp + 0x78], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x9c], eax
mov edx, dword [eax]
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
call fcn.00483a20
mov ecx, dword [esp + 0x28]
test eax, eax
je 0x4d5048
mov eax, dword [esp + 0x9c]
inc ecx
add eax, 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x9c], eax
cmp ecx, dword [esp + 0x30]
jl 0x4d5011
mov edx, dword [esp + 0xc]
jmp 0x4d5083
mov eax, dword [esp + 0x78]
xor edx, edx
cmp dword [esp + 0x18], ecx
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x24]
movzx eax, al
cmove edx, eax
mov dword [esp + 0x30], edx
mov byte [esp + 0x24], dl
mov edx, dword [esp + 0xc]
movsx eax, word [edx + 0x28]
cmp ecx, eax
jne 0x4d5083
mov eax, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov al, byte [esp + 0x30]
mov dword [esp + 0x24], eax
movsx eax, word [edx + 0x2a]
cmp ecx, eax
jl 0x4d50c6
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [ecx + eax*8]
call fcn.004ba4a0
test eax, eax
je 0x4d51e8
cmp byte [esp + 0x84], 0
jne 0x4d51e8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x24], 0
jmp 0x4d50ca
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ecx + 4]
jl 0x4d4fe0
cmp dword [esp + 0x40], 0
je 0x4d52e9
inc dword [esi + 0x2c]
mov edx, 0xd
mov eax, dword [edi + 0x6c]
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
inc eax
push eax
push 0
mov dword [esp + 0x80], ecx
push ecx
mov ecx, edi
call fcn.004a1e40
mov eax, dword [esp + 0x84]
add esp, 0xc
mov edx, dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0xa4], eax
xor eax, eax
cmp byte [esp + 0x24], al
mov byte [esp + 0xa0], 0xd
cmovne eax, dword [esp + 0x70]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xb0], 0
movsx eax, word [eax + 0x2a]
mov dword [esp + 0xac], eax
lea eax, [esp + 0xa0]
push eax
call fcn.004e6c50
mov ecx, dword [esp + 0xac]
add esp, 4
mov dword [esp + 0x88], ecx
test eax, eax
jne 0x4d5fa9
mov eax, dword [esp + 0x48]
cmp byte [eax + 0x51], 0
jne 0x4d5fa9
cmp dword [esi + 0x24], 0
jne 0x4d5fa9
mov edx, dword [esp + 0x78]
mov ecx, edi
call fcn.004a2570
mov edx, dword [esp + 0x30]
mov ecx, edi
call fcn.004a2960
cmp dword [esp + 0x60], 0
mov ecx, dword [esp + 0x40]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x24], eax
jne 0x4d5212
push dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, esi
call fcn.004d48d0
add esp, 4
test eax, eax
jne 0x4d5212
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x24]
jmp 0x4d533b
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [edi]
push dword [eax + ecx*8]
push 0
push dword [esp + 0x6c]
push 0x70fecc
push esi
call fcn.00483850
add esp, 0x14
mov byte [esi + 0x11], 1
jmp 0x4d5fad
mov edx, dword [esi + 0x28]
mov ecx, esi
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], edx
lea eax, [edx + 1]
mov dword [esi + 0x28], eax
call fcn.004c00f0
mov edi, eax
call fcn.004c00f0
push dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
push edx
mov edx, 0x70
mov dword [esp + 0x30], eax
call fcn.004a1f70
mov eax, dword [esp + 0xac]
mov edx, 0xe
mov ecx, dword [esp + 0x44]
push eax
mov dword [esp + 0x60], eax
call fcn.004a1f10
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edx, 0x5c
mov esi, eax
push edi
push dword [esp + 0x28]
push dword [esp + 0x90]
call fcn.004a1e40
mov ecx, dword [esp + 0x48]
add esp, 0xc
mov edx, 0x79
push dword [esp + 0x28]
push dword [esp + 0x38]
call fcn.004a1f70
push dword [esp + 0x30]
mov ecx, dword [esp + 0x48]
mov edx, 0x7a
push edi
push dword [esp + 0x44]
call fcn.004a1e40
mov ecx, dword [esp + 0x50]
add esp, 0x14
mov edx, esi
call fcn.004a1fe0
mov ecx, dword [esp + 0x3c]
mov edx, esi
call fcn.004a2960
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.004c0110
mov edx, dword [esp + 0x28]
call fcn.004c0110
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
jmp 0x4d533b
mov ecx, dword [esp + 0x4c]
xorps xmm0, xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xa0], esi
mov dword [esp + 0x34], 0xffffffff
test ecx, ecx
je 0x4d5335
mov eax, dword [ecx]
mov edx, ecx
lea ecx, [esp + 0xa0]
mov dword [esp + 0x24], eax
call fcn.004b7700
test eax, eax
jne 0x4d5fa9
mov eax, dword [esp + 0x24]
jmp 0x4d533b
xor eax, eax
mov dword [esp + 0x24], eax
cmp dword [esp + 0x10], 0
mov ecx, dword [esp + 0xc]
jne 0x4d5352
test eax, eax
jle 0x4d5352
movsx eax, word [ecx + 0x28]
mov dword [esp + 0x5c], eax
movsx eax, word [ecx + 0x2a]
xor edx, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
cmp eax, 2
jl 0x4d53b1
mov edx, dword [ecx + 4]
add eax, 0xfffffffe
shr eax, 1
add edx, 0x1f
inc eax
mov dword [esp + 0x30], eax
add eax, eax
mov edi, dword [esp + 0x30]
mov dword [esp + 0x1c], eax
movzx eax, byte [edx - 0x10]
lea edx, [edx + 0x20]
shr eax, 1
and eax, 1
add dword [esp + 0x28], eax
movzx eax, byte [edx - 0x20]
shr eax, 1
and eax, 1
add dword [esp + 0x18], eax
sub edi, 1
jne 0x4d5383
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
movsx eax, word [ecx + 0x2a]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x1c], eax
jge 0x4d53d9
shl dword [esp + 0x1c], 4
mov esi, dword [esp + 0x1c]
mov eax, dword [ecx + 4]
movzx eax, byte [esi + eax + 0xf]
mov esi, dword [esp + 0x20]
shr eax, 1
and eax, 1
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x7c]
add edx, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4d541c
cmp dword [esp + 0x24], eax
je 0x4d543c
movsx eax, word [ecx + 0x2a]
sub eax, edx
mov edx, dword [esp + 0x24]
cmp edx, eax
je 0x4d543c
push edx
push eax
push 0
push dword [esp + 0x70]
push 0x70ff28
push esi
call fcn.00483850
add esp, 0x18
jmp 0x4d5fa9
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x24]
cmp edx, eax
je 0x4d543c
push eax
push edx
push 0x70ff0c
push esi
call fcn.00483850
add esp, 0x10
jmp 0x4d5fa9
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
and eax, 0x80
or eax, 0
je 0x4d547c
cmp byte [esi + 0x12], 0
jne 0x4d547c
cmp dword [esi + 0x78], 0
jne 0x4d547c
inc dword [esi + 0x2c]
mov edx, 0x46
mov eax, dword [esi + 0x2c]
mov ecx, edi
push eax
push 0
mov dword [esp + 0xa0], eax
call fcn.004a1f70
mov ecx, dword [esp + 0x14]
add esp, 8
cmp dword [esp + 0x58], 0
jne 0x4d551a
lea eax, [esp + 0x90]
mov edx, ecx
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
push 0
push 0xffffffffffffffff
push 0
push 0x62
call fcn.004d7d30
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x94], eax
push 0
lea eax, [eax*4 + 8]
push eax
call fcn.00480700
add esp, 0x20
mov dword [esp + 0x68], eax
test eax, eax
je 0x4d5fa9
mov ecx, dword [esp + 0xc]
xor edx, edx
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
cmp dword [esp + 0x7c], edx
jle 0x4d5509
mov edi, eax
inc dword [esi + 0x2c]
mov ecx, dword [esp + 0x68]
mov eax, dword [esi + 0x2c]
mov dword [ecx + edx*4], eax
inc edx
movzx eax, word [edi + 0x34]
add dword [esi + 0x2c], eax
mov edi, dword [edi + 0x14]
cmp edx, dword [esp + 0x7c]
jl 0x4d54e3
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov esi, dword [esp + 0x68]
mov dword [esi + edx*4], eax
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x8c]
test edx, edx
je 0x4d558b
cmp dword [ecx + 0x38], 0
je 0x4d553d
push dword [ecx]
push 0x70ff6c
push esi
call fcn.00483850
jmp 0x4d5fa6
mov edx, dword [edx]
mov ecx, esi
call fcn.004ca1a0
test eax, eax
jne 0x4d5fa9
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x34], ecx
cmp dword [edx], 0
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x90]
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], eax
je 0x4d558b
push edx
mov edx, dword [esp + 0x68]
mov ecx, esi
call fcn.004edc40
add esp, 4
cmp byte [esp + 0x17], 0
je 0x4d55b2
push dword [esp + 0x34]
mov edx, 0x24
mov ecx, edi
call fcn.004a1f10
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x6c]
mov dword [esp + 0x78], eax
jmp 0x4d55d6
cmp dword [esp + 0x40], 0
je 0x4d55d9
push dword [esp + 0x54]
mov edx, 0xe
mov ecx, edi
call fcn.004a1f10
mov ecx, eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x98], ecx
add esp, 4
dec dword [esi + 0x38]
test byte [esp + 0x80], 1
mov eax, dword [esi + 0x38]
mov dword [esp + 0x28], eax
je 0x4d5872
mov eax, dword [esp + 0xc]
mov ecx, esi
movsx edx, word [eax + 0x2a]
inc edx
call fcn.004c0130
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
push eax
test ecx, ecx
jns 0x4d5624
push 0xffffffffffffffff
mov edx, 0x46
mov ecx, edi
call fcn.004a1f70
add esp, 8
jmp 0x4d5699
cmp byte [esp + 0x1b], 0
je 0x4d5641
push ecx
push dword [esp + 0x3c]
mov edx, 0x5a
mov ecx, edi
call fcn.004a1e40
add esp, 0xc
jmp 0x4d5656
mov eax, dword [esp + 0x50]
lea edx, [ecx + ecx*2]
mov ecx, esi
mov edx, dword [eax + edx*8 + 4]
call fcn.004be680
add esp, 4
push dword [esp + 0x18]
mov edx, 0x33
mov ecx, edi
call fcn.004a1f10
add esp, 4
mov edx, 0x46
mov ecx, edi
mov esi, eax
push dword [esp + 0x18]
push 0xffffffffffffffff
call fcn.004a1f70
mov edx, esi
mov ecx, edi
call fcn.004a2960
push dword [esp + 0x20]
mov edx, 0xf
mov ecx, edi
call fcn.004a1f10
add esp, 0xc
mov ecx, dword [esp + 0xc]
xor eax, eax
xor esi, esi
cmp ax, word [ecx + 0x2a]
jge 0x4d57ec
mov edx, dword [esp + 0x18]
mov dword [esp + 0x54], eax
inc edx
or eax, 0xffffffff
mov dword [esp + 0x1c], edx
sub eax, dword [esp + 0x18]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4d56fd
xor esi, esi
cmp dword [eax + 4], esi
jle 0x4d56fd
mov ecx, dword [eax]
mov edi, dword [esp + 0x80]
add ecx, 4
lea eax, [edx + edi]
cmp dword [ecx], eax
mov eax, dword [esp + 0x10]
je 0x4d56f5
inc esi
add ecx, 8
cmp esi, dword [eax + 4]
jl 0x4d56e1
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0xc]
cmp byte [esp + 0x17], 0
jne 0x4d570b
cmp dword [esp + 0x4c], 0
je 0x4d5714
test eax, eax
je 0x4d577f
cmp esi, dword [eax + 4]
jl 0x4d577f
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x54]
mov eax, dword [eax + ecx + 4]
test eax, eax
je 0x4d5745
cmp byte [eax], 0xab
jne 0x4d5745
push edx
push dword [eax + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, 0x4e
mov ecx, dword [eax + 8]
call fcn.004a1f70
add esp, 8
jmp 0x4d57b4
mov ecx, dword [esp + 0x20]
push edx
mov edx, eax
call fcn.004bd380
mov edx, dword [esp + 0x20]
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edx
je 0x4d57b8
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4d57b8
push edx
push dword [esp + 0x34]
mov edx, 0x4f
call fcn.004a1f70
add esp, 8
jmp 0x4d57b4
cmp byte [esp + 0x17], 0
push edx
je 0x4d579d
push esi
push dword [esp + 0x3c]
mov edx, 0x5a
mov ecx, edi
call fcn.004a1e40
add esp, 0xc
jmp 0x4d57b4
mov eax, dword [esp + 0x50]
lea edx, [esi + esi*2]
mov ecx, dword [esp + 0x24]
mov edx, dword [eax + edx*8 + 4]
call fcn.004be770
add esp, 4
mov edx, dword [esp + 0x1c]
add dword [esp + 0x54], 0x10
lea eax, [esi + 1]
mov ecx, dword [esp + 0x80]
inc edx
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], edx
cmovne eax, esi
add ecx, edx
mov esi, eax
mov eax, dword [esp + 0xc]
movsx eax, word [eax + 0x2a]
cmp ecx, eax
mov ecx, dword [esp + 0xc]
jl 0x4d56c6
cmp dword [esp + 0x58], 0
jne 0x4d5805
mov eax, dword [esp + 0x18]
mov edx, ecx
inc eax
mov ecx, edi
push eax
call fcn.004d47b0
add esp, 4
mov edx, dword [esp + 0xc]
push dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push dword [ebp + 0x10]
movsx eax, word [edx + 0x2a]
mov esi, dword [esp + 0x28]
sub ecx, eax
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x70]
mov ecx, esi
push 1
push 0
push 0x7b
call fcn.004eb290
mov ecx, dword [esp + 0x28]
add esp, 0x1c
movsx eax, word [ecx + 0x2a]
inc eax
cmp eax, 1
jne 0x4d5861
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4d5876
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x4d5876
movzx eax, al
mov dword [esi + eax*4 + 0x94], edx
inc byte [esi + 0x13]
jmp 0x4d5876
cmp eax, dword [esi + 0x1c]
jle 0x4d5876
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x20], eax
jmp 0x4d5876
mov ecx, dword [esp + 0xc]
cmp dword [esp + 0x58], 0
jne 0x4d5d30
cmp dword [ecx + 0x38], 0
je 0x4d58a0
push dword [esp + 0x6c]
mov edx, 0x49
mov ecx, edi
push 0
call fcn.004a1f70
mov ecx, dword [esp + 0x14]
add esp, 8
mov eax, dword [esp + 0x5c]
test eax, eax
js 0x4d5990
cmp byte [esp + 0x17], 0
je 0x4d58ce
mov esi, dword [esp + 0x38]
mov edx, 0x5a
push esi
push eax
push dword [esp + 0x3c]
mov ecx, edi
call fcn.004a1e40
add esp, 0xc
jmp 0x4d591f
cmp dword [esp + 0x40], 0
je 0x4d58f3
mov esi, dword [esp + 0x38]
mov edx, 0x4e
add eax, dword [esp + 0x88]
mov ecx, edi
push esi
push eax
call fcn.004a1f70
add esp, 8
jmp 0x4d591f
mov edx, dword [esp + 0x4c]
lea eax, [eax + eax*2]
mov edx, dword [edx + eax*8 + 4]
cmp byte [edx], 0x75
jne 0x4d590d
cmp dword [ecx + 0x38], 0
je 0x4d59a0
push dword [esp + 0x38]
mov ecx, esi
call fcn.004be680
mov esi, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0xc]
mov ecx, edi
cmp dword [eax + 0x38], 0
jne 0x4d5965
push esi
mov edx, 0x33
call fcn.004a1f10
add esp, 4
mov edx, 0x79
mov ecx, edi
mov esi, eax
push dword [esp + 0x44]
push dword [esp + 0x3c]
push dword [esp + 0x58]
call fcn.004a1e40
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.004a2960
mov esi, dword [esp + 0x38]
jmp 0x4d597a
mov eax, dword [edi + 0x6c]
mov edx, 0x32
add eax, 2
push eax
push esi
call fcn.004a1f70
add esp, 8
push esi
mov edx, 0xf
mov ecx, edi
call fcn.004a1f10
mov esi, dword [esp + 0x24]
add esp, 4
jmp 0x4d59d7
cmp dword [ecx + 0x38], 0
jne 0x4d59c2
cmp byte [esp + 0x84], 0
jne 0x4d59c2
push dword [esp + 0x44]
mov edx, 0x79
mov ecx, edi
push dword [esp + 0x3c]
push dword [esp + 0x58]
call fcn.004a1e40
add esp, 0xc
mov byte [esp + 0x2f], 1
jmp 0x4d59d7
push dword [esp + 0x38]
mov edx, 0x49
mov ecx, edi
push 0
call fcn.004a1f70
add esp, 8
push dword [esp + 0x38]
mov edx, dword [esp + 0x48]
mov ecx, esi
call fcn.004d4b40
mov edx, dword [esp + 0x10]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x5c], 0
add esp, 4
mov dword [esp + 0x18], ecx
cmp ax, word [edx + 0x2a]
jge 0x4d5ad8
mov dword [esp + 0x44], eax
nop dword [eax + eax]
mov eax, dword [esp + 0x70]
add eax, ecx
mov dword [esp + 0x1c], eax
movsx eax, word [edx + 0x28]
cmp ecx, eax
jne 0x4d5a7c
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d5a43
push 0
push 0
push dword [esp + 0x24]
mov edx, 0x4a
mov ecx, edi
call fcn.004a1e00
add esp, 0xc
jmp 0x4d5aba
mov esi, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], esi
mov esi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d5abe
cmp dword [esp + 0x10], 0
jne 0x4d5b7a
mov esi, dword [esp + 0x44]
mov eax, dword [edx + 4]
test byte [eax + esi + 0xf], 2
mov esi, dword [esp + 0x20]
je 0x4d5b72
inc dword [esp + 0x58]
mov edx, dword [edx + 4]
mov ecx, esi
mov eax, dword [esp + 0x44]
push dword [esp + 0x1c]
mov edx, dword [edx + eax + 4]
call fcn.004be6e0
add esp, 4
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
movsx eax, word [edx + 0x2a]
inc ecx
add dword [esp + 0x44], 0x10
mov dword [esp + 0x18], ecx
cmp ecx, eax
jl 0x4d5a10
cmp dword [edx + 0x38], 0
je 0x4d5c63
mov eax, dword [edx + 0x40]
mov dword [esp + 0x84], eax
test eax, eax
je 0x4d5b06
mov ecx, dword [esp + 0x48]
cmp dword [eax], ecx
je 0x4d5aff
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4d5af4
mov dword [esp + 0x84], eax
mov ecx, esi
call fcn.004f0350
mov eax, dword [esp + 0xc]
mov edx, 0xa
push 0xfffffffffffffff4
push dword [esp + 0x88]
mov ecx, edi
movsx eax, word [eax + 0x2a]
push dword [esp + 0x74]
add eax, 2
push eax
push 1
call fcn.004a22b0
mov eax, dword [edi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x4d5b5f
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xb
movzx edx, cx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [esp + 0x30], 2
cmove edx, dword [esp + 0x30]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [esi + 0x74]
mov ecx, esi
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
jmp 0x4d5d30
mov eax, ecx
sub eax, dword [esp + 0x58]
jmp 0x4d5bb9
mov esi, dword [esp + 0x10]
xor eax, eax
cmp dword [esi + 4], eax
mov esi, dword [esp + 0x20]
jle 0x4d5bc1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
mov ecx, dword [ecx]
add ecx, 4
nop word [eax + eax]
cmp dword [ecx], edx
je 0x4d5bad
inc eax
add ecx, 8
cmp eax, dword [edi + 4]
jl 0x4d5ba0
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
test eax, eax
js 0x4d5aa1
cmp dword [esp + 0x24], 0
je 0x4d5aa1
cmp dword [esp + 0x10], 0
mov esi, dword [esp + 0x20]
je 0x4d5be8
mov esi, dword [esp + 0x10]
cmp eax, dword [esi + 4]
mov esi, dword [esp + 0x20]
jge 0x4d5aa1
cmp byte [esp + 0x17], 0
je 0x4d5c0c
push dword [esp + 0x1c]
mov edx, 0x5a
mov ecx, edi
push eax
push dword [esp + 0x3c]
call fcn.004a1e40
add esp, 0xc
jmp 0x4d5aba
cmp dword [esp + 0x40], 0
je 0x4d5c48
mov esi, dword [esp + 0x88]
cmp esi, dword [esp + 0x70]
mov esi, dword [esp + 0x20]
je 0x4d5ac2
push dword [esp + 0x1c]
add eax, dword [esp + 0x8c]
mov edx, 0x4f
push eax
mov ecx, edi
call fcn.004a1f70
add esp, 8
jmp 0x4d5aba
push dword [esp + 0x1c]
lea edx, [eax + eax*2]
mov ecx, esi
mov eax, dword [esp + 0x50]
mov edx, dword [eax + edx*8 + 4]
call fcn.004be680
jmp 0x4d5ab7
push dword [esp + 0x8c]
lea eax, [esp + 0x34]
mov ecx, esi
push 0
push eax
push dword [esp + 0x34]
mov eax, dword [esp + 0x6c]
push dword [ebp + 0x10]
shr eax, 0x1f
xor al, 1
movzx eax, al
push eax
push 0
push dword [esp + 0x88]
push dword [esp + 0xb0]
push dword [esp + 0x74]
push dword [esp + 0x90]
call fcn.004d60c0
mov edx, dword [esp + 0x38]
add esp, 0x2c
mov ecx, esi
push 0
push 0
push dword [esp + 0x74]
push 0
call fcn.004d3590
add esp, 0x10
cmp dword [esp + 0x30], 0
je 0x4d5d01
cmp dword [esp + 0x60], 0
jne 0x4d5cfd
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
and eax, 0x4000
or eax, 0
je 0x4d5d01
mov eax, dword [esp + 0xc]
push 0
mov ecx, dword [eax + 0x48]
mov edx, dword [eax]
add ecx, 0x38
call fcn.00485170
add esp, 4
cmp dword [eax + 8], 0
je 0x4d5d01
xor eax, eax
jmp 0x4d5d06
mov eax, 1
mov edx, dword [esp + 0xc]
mov ecx, esi
push eax
movzx eax, byte [esp + 0x33]
push eax
push 0
push dword [esp + 0x74]
push dword [esp + 0x7c]
push dword [esp + 0xa4]
push dword [esp + 0x68]
call fcn.004d7a80
add esp, 0x1c
mov edx, dword [esp + 0x98]
test edx, edx
je 0x4d5d8c
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d5d59
push 0
push 1
push edx
mov edx, 0x53
mov ecx, edi
call fcn.004a1e00
add esp, 0xc
jmp 0x4d5d8c
mov esi, dword [esp + 0x20]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x53
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x60], 0
je 0x4d5dc1
mov ecx, dword [esp + 0xc]
push dword [esp + 0x28]
mov edx, dword [esp + 0x74]
push dword [ebp + 0x10]
movsx eax, word [ecx + 0x2a]
sub edx, eax
sub edx, 2
push edx
mov edx, dword [esp + 0x6c]
push ecx
push 2
push 0
push 0x7b
mov ecx, esi
call fcn.004eb290
add esp, 0x1c
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x4d5ddf
push edx
mov edx, edi
call fcn.004a25e0
add esp, 4
jmp 0x4d5de8
mov ecx, dword [ecx + 0x40]
mov eax, dword [edi + 0x6c]
mov dword [ecx + edx*4], eax
cmp byte [esp + 0x17], 0
je 0x4d5ecc
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d5e17
mov edx, dword [esp + 0x74]
mov ecx, edi
push 0
push edx
push dword [esp + 0x3c]
mov edx, 5
call fcn.004a1e00
add esp, 0xc
jmp 0x4d5e4a
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x74]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x94]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4d5e5b
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d5e6a
mov eax, 0x71d19c
jmp 0x4d5e73
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d5e97
push 0
push 0
push dword [esp + 0x3c]
mov edx, 0x75
mov ecx, edi
call fcn.004a1e00
add esp, 0xc
jmp 0x4d5f0a
mov edx, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x75
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x4d5f0a
cmp dword [esp + 0x40], 0
je 0x4d5f0a
mov edx, dword [esp + 0x74]
mov ecx, edi
call fcn.004a1fe0
mov ecx, dword [esp + 0x94]
mov edx, dword [edi + 0x6c]
test ecx, ecx
jns 0x4d5eef
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x4d5efe
mov eax, 0x71d19c
jmp 0x4d5f07
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
cmp byte [esi + 0x12], 0
jne 0x4d5f23
cmp dword [esi + 0x78], 0
jne 0x4d5f23
cmp dword [esi + 0x70], 0
je 0x4d5f23
mov ecx, esi
call fcn.004d4bb0
mov edx, dword [esp + 0x98]
test edx, edx
je 0x4d5fa9
mov ecx, dword [edi + 0x6c]
cmp dword [edi + 0x70], ecx
jg 0x4d5f50
push 0
push 1
push edx
mov edx, 0x51
mov ecx, edi
call fcn.004a1e00
add esp, 0xc
jmp 0x4d5f7f
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x51
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov edx, 1
mov ecx, edi
call fcn.004a4060
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
jne 0x4d5fa9
mov ecx, dword [edi + 0x74]
mov edx, 0x70ff5c
push 0
push 1
push 0xffffffffffffffff
call fcn.004a1160
add esp, 0xc
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x48]
mov ecx, esi
mov edx, dword [esp + 0x64]
call fcn.004cb660
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4d5fcd
mov edx, eax
mov ecx, esi
call fcn.004b9c80
mov edx, dword [esp + 0x8c]
mov ecx, esi
call fcn.004eda30
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4d5ff1
push 1
mov edx, eax
mov ecx, esi
call fcn.004de400
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.004cb250
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x4d6067
test esi, esi
je 0x4d605e
cmp dword [esi + 0x1e8], 0
je 0x4d602c
mov edx, ecx
mov ecx, esi
call fcn.00480330
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00625325
mov esp, ebp
pop ebp
ret
cmp ecx, dword [esi + 0x138]
jb 0x4d605e
cmp ecx, dword [esi + 0x13c]
jae 0x4d605e
mov eax, dword [esi + 0x134]
mov dword [ecx], eax
mov dword [esi + 0x134], ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc4]
xor ecx, esp
call fcn.00625325
mov esp, ebp
pop ebp
ret
push ecx
call fcn.004802c0
add esp, 4
mov ecx, dword [esp + 0xcc]
pop edi
pop esi
xor ecx, esp
call fcn.00625325
mov esp, ebp
pop ebp
ret