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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34c
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 4
lea eax, [esp + 0x18]
push eax
call dword [0x100ef7e8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [esi + 0x14]
call fcn.004a2ca0
test eax, eax
je 0x4ecfd7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
test eax, eax
je 0x4ec8ac
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [ecx], 0xc000017c
je 0x4ee08b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
push 4
lea ecx, [esp + 0x10]
push ecx
call dword [0x100ef7e8]
lea edx, [esp + 0xc]
push edx
lea ecx, [ebp + 0xc]
lea eax, [esi + 0x70]
push ecx
mov dword [esp + 0x4c], eax
call fcn.004f9530
test eax, eax
je 0x4ecb6e
mov eax, dword [esp + 0xc]
cmp edi, dword [eax + 8]
jbe 0x4ecb6e
xor ebx, ebx
mov dword [esp + 0xe4], ebx
mov word [esp + 0xe0], bx
mov word [esp + 0xe2], bx
mov dword [esp + 0xf0], ebx
mov word [esp + 0xec], bx
mov word [esp + 0xee], bx
mov esi, dword [eax + 8]
cmp esi, edi
jae 0x4ec947
lea ebx, [ebx]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xe0]
push eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x4ec977
mov eax, dword [esp + 0xc]
add esi, 1
cmp esi, dword [ebp + 0x10]
jb 0x4ec920
mov edi, dword [ebp + 0x10]
mov dword [eax + 8], edi
mov eax, dword [ebp + 0x14]
sub eax, ebx
je 0x4ecafd
sub eax, 1
je 0x4eca9e
sub eax, 1
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
je 0x4eca36
mov ecx, dword [ebp + 0x28]
mov dword [ecx], 0xc000000d
jmp 0x4ec98a
cmp edi, 1
jne 0x4ec9c7
mov ecx, dword [ebp + 0x28]
mov dword [ecx], 0x8000001a
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
lea ecx, [esp + 0xe0]
call fcn.004ee0a0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4ec9aa
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4ee08b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [0x100ef594], ebx
je 0x4eca28
lea esi, [esp + 0x204]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d4fa0
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x26c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x204]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor ebx, ebx
mov ecx, dword [ebp + 0x28]
mov dword [ecx], 0xc0000229
jmp 0x4ec985
mov ebx, dword [esp + 0xe8]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x114]
mov esi, dword [ebp + 0x18]
push edx
mov edx, dword [esp + 0x110]
push eax
mov eax, dword [esp + 0x110]
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0xf4]
and ebx, ecx
mov ecx, dword [esp + 0x118]
push ecx
mov ecx, dword [esp + 0x110]
push edx
mov edx, dword [esp + 0x110]
push eax
mov eax, dword [esp + 0x110]
push ecx
mov ecx, dword [esp + 0x110]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.004f43f0
jmp 0x4ecb3a
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0xe0]
mov esi, dword [ebp + 0x18]
mov dword [eax], ebx
mov eax, dword [esp + 0xe8]
neg eax
sbb eax, eax
lea ecx, [esp + 0xec]
and eax, ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 0x44], edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [esp + 0x100]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0x100]
push edx
push ecx
push eax
lea edx, [esp + 0x58]
push edx
call fcn.004f42c0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
jmp 0x4ec98a
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0xe0]
mov edx, dword [esp + 0xe4]
mov dword [eax], ebx
mov eax, dword [esp + 0xfc]
mov ebx, dword [ebp + 0x18]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0xf8]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
lea edi, [esp + 0x60]
mov dword [esp + 0x64], edx
call fcn.004f4250
mov edx, dword [ebp + 0x28]
lea ecx, [esp + 0xe0]
mov dword [edx], eax
call fcn.004ee0a0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4ecb63
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x4ec9b0
test ebx, ebx
je 0x4ecba9
cmp ebx, 2
je 0x4ecba9
cmp ebx, 1
je 0x4ecba9
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
lea esi, [esp + 0xc]
mov dword [eax], 0
mov dword [ecx], 0xc000000d
call fcn.004f91d0
lea esi, [esp + 0x14]
call fcn.004c5d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
lea ebx, [esp + 0x28]
call fcn.004e3630
mov edi, eax
mov eax, dword [esp + 0xc]
xor esi, esi
cmp eax, esi
je 0x4ecbca
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0xc], esi
mov eax, dword [edi]
cmp eax, esi
mov dword [esp + 0xc], eax
je 0x4ecbdc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x4ecbf0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x28], esi
push 4
lea eax, [esp + 0x1c]
push eax
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x40]
lea eax, [esp + 0x18]
push eax
call edx
mov edi, eax
cmp edi, esi
je 0x4eccbb
cmp dword [0x100ef594], esi
je 0x4ecc78
lea esi, [esp + 0x1e0]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d4fd8
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x28c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x1e0]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor esi, esi
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and edi, 0xefffffff
mov dword [eax], esi
mov dword [ecx], edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4ecc9c
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4eccb0
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
jmp 0x4ec9b0
mov edi, dword [esp + 0xc]
mov eax, dword [edi + 0xc]
add edi, 0xc
cmp eax, esi
je 0x4eccd3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], esi
mov eax, dword [esp + 0x18]
mov dword [edi], eax
mov ecx, dword [esp + 0x18]
cmp ecx, esi
je 0x4ecced
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ecx
call eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xac], esi
mov word [esp + 0xa8], si
mov word [esp + 0xaa], si
mov dword [esp + 0xb8], esi
mov word [esp + 0xb4], si
mov word [esp + 0xb6], si
xor ebx, ebx
jmp 0x4ecd24
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0xa8]
push eax
call edx
mov edi, eax
cmp edi, esi
jne 0x4ecdb7
add ebx, 1
cmp ebx, dword [ebp + 0x10]
jbe 0x4ecd20
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
lea edx, [esp + 0xc]
push edx
lea eax, [ebp + 0xc]
push eax
mov eax, dword [esp + 0x4c]
call fcn.004a22f0
mov eax, dword [ebp + 0x14]
sub eax, esi
je 0x4ecf65
sub eax, 1
je 0x4eceef
sub eax, 1
je 0x4ece5b
lea ecx, [esp + 0xa8]
call fcn.004ee0a0
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x4ecd9a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x4ecfd9
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0xc], esi
jmp 0x4ecfd9
cmp edi, 1
jne 0x4ecddb
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov dword [ecx], 0x8000001a
lea ecx, [esp + 0xa8]
mov dword [eax], esi
call fcn.004ee0a0
jmp 0x4ecc88
cmp dword [0x100ef594], esi
je 0x4ece3c
lea esi, [esp + 0x1ec]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d4fd8
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x2ac]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x1ec]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor esi, esi
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0xa8]
mov dword [eax], esi
call fcn.004ee0a0
jmp 0x4ecc88
mov ebx, dword [esp + 0xb0]
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [esp + 0xd8]
mov dword [eax], esi
mov eax, dword [esp + 0xe0]
mov esi, dword [ebp + 0x18]
push eax
mov eax, dword [esp + 0xd8]
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0xbc]
and ebx, ecx
mov ecx, dword [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
push eax
push ecx
mov ecx, dword [ebp + 0x1c]
call fcn.004f43f0
mov edx, dword [ebp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [edx], eax
call fcn.004ee0a0
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x4ecc9c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4ecc98
mov eax, dword [ebp + 0x24]
mov edx, dword [esp + 0xa8]
mov dword [eax], esi
mov eax, dword [esp + 0xb0]
mov esi, dword [ebp + 0x18]
neg eax
sbb eax, eax
lea ecx, [esp + 0xb4]
and eax, ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x198], edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [esp + 0xc8]
mov dword [esp + 0x1a0], ecx
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [esp + 0xc8]
push edx
push ecx
push eax
lea edx, [esp + 0x1ac]
push edx
call fcn.004f42c0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
lea ecx, [esp + 0xa8]
call fcn.004ee0a0
xor esi, esi
jmp 0x4ecc88
mov eax, dword [ebp + 0x24]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov ebx, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x1a8], ecx
mov ecx, dword [esp + 0xc0]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
lea edi, [esp + 0x1b0]
mov dword [esp + 0x1b4], edx
call fcn.004f4250
mov edx, dword [ebp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [edx], eax
call fcn.004ee0a0
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, esi
je 0x4ecc9c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4ecc98
xor esi, esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x4ecfed
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], esi
push 4
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x70], esi
mov word [esp + 0x6c], si
mov word [esp + 0x6e], si
call dword [0x100ef7e8]
push 4
lea ecx, [esp + 0x80]
push ecx
call dword [0x100ef7e8]
push 0x100cf494
lea edx, [esp + 0x14c]
push edx
call dword [0x100ef7e0]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x120], eax
lea edx, [esp + 0x64]
lea ecx, [esp + 0x148]
push edx
lea eax, [esp + 0x120]
mov dword [esp + 0x128], ecx
mov ecx, dword [ebp + 8]
push eax
xor eax, eax
mov dword [esp + 0x124], 0x18
mov dword [esp + 0x130], 0x40
mov dword [esp + 0x134], esi
mov dword [esp + 0x138], esi
call fcn.004e6b00
test eax, eax
je 0x4ed975
mov edi, dword [esp + 0x78]
push 0x100cf494
lea ecx, [esp + 0x234]
push ecx
call dword [0x100ef7e0]
lea edx, [esp + 0x228]
push edx
lea edx, [esp + 0x74]
call fcn.004fb510
cmp eax, esi
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x6c]
jne 0x4ed9e2
cmp edi, esi
mov dword [esp + 0x24], edi
je 0x4ed0ce
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x78]
mov ecx, edi
call eax
push 4
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x68], eax
call dword [0x100ef7e8]
mov ebx, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
lea ecx, [ebp + 0xc]
lea eax, [ebx + 0x94]
push ecx
call fcn.004f9530
test eax, eax
jne 0x4ed80f
jmp 0x4ed116
mov edi, dword [esp + 0x24]
xor esi, esi
cmp dword [esp + 0x60], 1
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
je 0x4ed13f
mov eax, dword [ebp + 8]
lea edx, [esp + 0xa0]
push edx
push eax
mov eax, dword [ebp + 0xc]
call fcn.004ee130
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov eax, dword [edi]
push ecx
push edx
mov edx, dword [eax + 0x4c]
mov ecx, edi
call edx
push eax
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [esp + 0x148]
push ecx
call fcn.004e36f0
add esp, 0x14
push eax
lea esi, [esp + 0x14]
call fcn.004f91a0
lea esi, [esp + 0x138]
call fcn.004f91d0
push 4
lea edx, [esp + 0x24]
push edx
call dword [0x100ef7e8]
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call edx
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4eda41
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
push 4
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x3c], ebx
mov word [esp + 0x38], bx
mov word [esp + 0x3a], bx
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x38]
push eax
call edx
mov edi, eax
cmp edi, ebx
jne 0x4ed648
cmp dword [esp + 0x134], ebx
jne 0x4ed5b2
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x24]
call edx
test eax, eax
jne 0x4ed21f
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
test eax, eax
je 0x4ed22e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004a5600
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
test eax, eax
je 0x4ed50c
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
jne 0x4ed50c
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x74]
lea eax, [esp + 0x38]
push eax
call edx
push 4
lea eax, [esp + 0x30]
push eax
call dword [0x100ef7e8]
mov esi, dword [esp + 0x38]
push 0x100cf494
lea ecx, [esp + 0x1c4]
push ecx
call dword [0x100ef7e0]
mov edx, dword [esi]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x2c]
push eax
push 0x20019
lea ecx, [esp + 0x1c8]
push ecx
mov ecx, esi
call edx
mov edi, eax
cmp edi, ebx
jne 0x4edadf
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x164], ebx
mov word [esp + 0x160], bx
mov word [esp + 0x162], bx
mov dword [esp + 0x170], ebx
mov word [esp + 0x16c], bx
mov word [esp + 0x16e], bx
mov eax, dword [ecx]
mov eax, dword [eax + 0x54]
lea edx, [esp + 0x160]
push edx
call eax
mov edi, eax
cmp edi, ebx
jne 0x4edb82
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
lea esi, [esp + 0x168]
call fcn.005055f0
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
cmp eax, ebx
mov dword [esp + 0x168], eax
je 0x4ed390
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x1c8]
push edx
call eax
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea esi, [esp + 0x174]
call fcn.005055f0
mov esi, dword [esp + 0x1cc]
cmp esi, ebx
je 0x4ed390
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x31c]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x334], 0
je 0x4ed390
mov esi, dword [esp + 0x330]
call fcn.005154d0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x10]
cmp dword [ecx + 0x14], eax
lea esi, [ecx + 0x14]
mov edi, ecx
jne 0x4ed3af
add ecx, 0xc
add eax, 0x100
push ecx
call fcn.004f8f20
mov eax, dword [esi]
lea edx, [eax*8]
lea ecx, [eax + 1]
sub edx, eax
mov eax, dword [edi + 0xc]
mov dword [esi], ecx
mov edi, dword [esp + 0x164]
lea esi, [eax + edx*8]
mov eax, dword [esp + 0x160]
mov cx, ax
cmp word [esi + 2], cx
mov ebx, eax
jae 0x4ed40a
movzx ecx, cx
and ecx, 0x800000ff
jns 0x4ed3f1
dec ecx
or ecx, 0xffffff00
inc ecx
sub eax, ecx
mov ecx, dword [esi + 4]
add eax, 0x100
mov word [esi + 2], ax
movzx eax, ax
call fcn.0053b3c0
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
movzx edx, bx
push edx
push edi
push eax
mov word [esi], bx
call dword [0x100ef7ec]
mov ecx, dword [esp + 0x168]
mov dword [esi + 8], ecx
mov eax, dword [esp + 0x16c]
mov ebx, dword [esp + 0x170]
mov cx, ax
cmp word [esi + 0xe], cx
mov edi, eax
jae 0x4ed46b
movzx edx, cx
and edx, 0x800000ff
jns 0x4ed452
dec edx
or edx, 0xffffff00
inc edx
mov ecx, dword [esi + 0x10]
sub eax, edx
add eax, 0x100
mov word [esi + 0xe], ax
movzx eax, ax
call fcn.0053b3c0
mov dword [esi + 0x10], eax
mov ecx, dword [esi + 0x10]
movzx eax, di
push eax
push ebx
push ecx
mov word [esi + 0xc], di
call dword [0x100ef7ec]
mov edx, dword [esp + 0x178]
mov dword [esi + 0x18], edx
mov eax, dword [esp + 0x17c]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x180]
mov dword [esi + 0x20], ecx
mov edx, dword [esp + 0x184]
mov dword [esi + 0x24], edx
mov eax, dword [esp + 0x188]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x18c]
mov dword [esi + 0x2c], ecx
mov edx, dword [esp + 0x190]
mov dword [esi + 0x30], edx
mov eax, dword [esp + 0x194]
lea ecx, [esp + 0x160]
mov dword [esi + 0x34], eax
call fcn.004ee0a0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ed4f2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4ed50a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], 0
xor ebx, ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4ed520
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4ed1b2
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x2bc]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x2d4], 0
je 0x4ed1b2
mov eax, dword [esp + 0x2d0]
mov ecx, dword [eax + 0x10]
add dword [ecx], 0xffffffff
mov ecx, dword [eax + 0x10]
mov esi, eax
add eax, 0x10
cmp dword [ecx], ebx
jne 0x4ed1b2
mov edx, ecx
mov dword [edx], ebx
mov eax, dword [esi + 8]
push ebx
push eax
call dword [0x100cf084]
mov ecx, dword [esi + 0xc]
test ecx, ecx
lea eax, [esi + 0xc]
jle 0x4ed1b2
push eax
call dword [0x100cf080]
mov edx, dword [esi + 0x14]
push ebx
push 1
push edx
call dword [0x100cf088]
jmp 0x4ed1b2
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4ed5c6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x34]
cmp esi, ebx
je 0x4ed609
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x2dc]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x2f4], 0
je 0x4ed609
mov esi, dword [esp + 0x2f0]
call fcn.005154d0
lea ecx, [esp + 0x4c]
push ecx
call fcn.004a5730
lea edx, [esp + 0x4c]
push edx
call fcn.004a5730
lea eax, [esp + 0x4c]
push eax
call fcn.004cd0f0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4ed110
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], 0
jmp 0x4ed110
cmp edi, 1
jne 0x4edd84
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea eax, [esp + 0x30]
call fcn.00505660
mov eax, edi
cmp dword [esp + 0x60], eax
je 0x4ed7de
mov esi, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], ebx
jmp 0x4ed694
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x40], esi
jae 0x4ed6ba
mov eax, dword [esp + 0x3c]
call fcn.00472510
cmp esi, ebx
jne 0x4ed6ad
mov dword [esp + 0x3c], ebx
jmp 0x4ed6ba
push esi
call fcn.0053b370
add esp, 4
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x58]
mov ecx, dword [0x100ef48c]
lea eax, [esp + 0x1d0]
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [ebp + 0xc]
push ebx
add ecx, 0x7c0
push edx
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x24]
mov dword [esp + 0x58], esi
call eax
call eax
mov edi, eax
cmp edi, ebx
je 0x4ed716
cmp edi, 0xc0000023
je 0x4ed709
cmp edi, 0x80000005
jne 0x4ed7b6
add dword [esp + 0x58], 0x100
jmp 0x4ed690
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx + 0xc]
add ecx, 0x10
shr eax, 1
push ecx
lea esi, [esp + 0x1a4]
call fcn.005054e0
lea ecx, [esp + 0x4c]
push ecx
mov eax, esi
call fcn.004a44c0
test eax, eax
jne 0x4ed76e
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x1c]
cmp dword [ecx + 0x20], eax
lea esi, [ecx + 0x20]
mov edi, ecx
jne 0x4ed75d
add eax, 0x100
add ecx, 0x18
call fcn.004f90c0
mov eax, dword [esi]
mov ecx, dword [edi + 0x18]
lea edx, [eax + 1]
mov dword [esi], edx
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4], edx
mov esi, dword [esp + 0x1a4]
cmp esi, ebx
je 0x4ed7c6
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x2fc]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x314], 0
je 0x4ed7c6
mov esi, dword [esp + 0x310]
call fcn.005154d0
jmp 0x4ed7c6
cmp edi, 0x8000001a
jne 0x4edc04
mov dword [esp + 0x44], ebx
add dword [esp + 0x28], 1
cmp dword [esp + 0x44], ebx
jne 0x4ed690
lea esi, [esp + 0x3c]
call fcn.00472330
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
add eax, 0x94
call fcn.004a22f0
lea esi, [esp + 0x4c]
call fcn.004a44a0
lea esi, [esp + 0x20]
call fcn.004c5d90
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
xor esi, esi
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x4c]
mov ecx, edi
call eax
mov ecx, dword [esp + 0x44]
cmp eax, dword [ecx + 0x24]
jle 0x4ed85f
lea edx, [ebp + 0xc]
push edx
lea eax, [ebx + 0x94]
call fcn.004f96e0
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4ed84c
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea eax, [esp + 0x64]
call fcn.004e4310
jmp 0x4ed8dd
cmp dword [esp + 0x60], 1
je 0x4eddfa
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x98]
push edx
push ebx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
call fcn.004ee130
test eax, eax
je 0x4eddfa
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x98]
cmp ecx, dword [edx + 0x28]
mov ebx, dword [esp + 0x9c]
lea eax, [edx + 0x28]
jne 0x4ed8b4
cmp ebx, dword [eax + 4]
je 0x4eddfe
mov dword [eax], ecx
mov dword [eax + 4], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], esi
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea eax, [esp + 0x64]
call fcn.004e4310
mov ebx, dword [ebp + 8]
push 4
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x70], esi
mov word [esp + 0x6c], si
mov word [esp + 0x6e], si
call dword [0x100ef7e8]
push 4
lea eax, [esp + 0x80]
push eax
call dword [0x100ef7e8]
push 0x100cf494
lea ecx, [esp + 0x14c]
push ecx
call dword [0x100ef7e0]
mov edx, dword [ebp + 0xc]
lea ecx, [esp + 0x64]
mov dword [esp + 0x120], edx
lea eax, [esp + 0x148]
push ecx
lea edx, [esp + 0x120]
mov dword [esp + 0x128], eax
push edx
xor eax, eax
mov ecx, ebx
mov dword [esp + 0x124], 0x18
mov dword [esp + 0x130], 0x40
mov dword [esp + 0x134], esi
mov dword [esp + 0x138], esi
call fcn.004e6b00
test eax, eax
jne 0x4ed086
cmp dword [0x100ef594], esi
je 0x4ed9c7
mov eax, 0x100
xor ecx, ecx
mov dword [esp + 0x144], 0xff
call fcn.0053b3c0
mov dword [esp + 0x140], esi
push 0x100d4f60
lea esi, [esp + 0x140]
mov dword [esp + 0x140], eax
mov byte [eax], 0
call fcn.0052f5f0
push 0x100d4d80
call fcn.0052f5f0
mov eax, esi
call fcn.00537250
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp edi, esi
je 0x4ed9ee
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0x78]
mov ecx, edi
call edx
mov ebx, eax
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
cmp ebx, 1
jne 0x4eda26
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
mov dword [eax], 0xc0000034
lea eax, [esp + 0x64]
mov dword [edx], esi
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [ebp + 0x24]
lea eax, [esp + 0x64]
mov dword [ecx], 1
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [0x100ef594], ebx
je 0x4edaa2
lea esi, [esp + 0x1d4]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d5010
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x23c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x1d4]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor ebx, ebx
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
and edi, 0xefffffff
mov dword [edx], ebx
mov dword [eax], edi
lea esi, [esp + 0x20]
call fcn.004c5d90
lea esi, [esp + 0x10]
call fcn.004f91d0
lea esi, [esp + 0x24]
call fcn.004c5d90
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [0x100ef594], ebx
je 0x4edb40
lea esi, [esp + 0x21c]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d5038
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x24c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x21c]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor ebx, ebx
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
and edi, 0xefffffff
mov dword [ecx], ebx
mov dword [edx], edi
lea esi, [esp + 0x2c]
call fcn.004c5d90
lea esi, [esp + 0x38]
call fcn.004c5d90
lea esi, [esp + 0x1c]
call fcn.004c5d90
lea eax, [esp + 0x30]
call fcn.00505660
lea esi, [esp + 0x4c]
call fcn.004a44a0
jmp 0x4edab2
cmp dword [0x100ef594], ebx
je 0x4edbe3
lea esi, [esp + 0x210]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d506c
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x27c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x210]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor ebx, ebx
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
and edi, 0xefffffff
mov dword [ecx], edi
lea ecx, [esp + 0x160]
mov dword [eax], ebx
call fcn.004ee0a0
jmp 0x4edb50
cmp dword [0x100ef594], ebx
je 0x4edccb
mov eax, 0x100
xor ecx, ecx
mov dword [esp + 0x94], 0xff
call fcn.0053b3c0
push 0x100d4f60
lea esi, [esp + 0x90]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], ebx
mov byte [eax], 0
call fcn.0052f5f0
push 0x100d50e0
call fcn.0052f5f0
push edi
lea edx, [esp + 0x25c]
push edx
call fcn.005374b0
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x150]
push ecx
mov ecx, eax
call edx
mov eax, dword [esp + 0x150]
push eax
call fcn.0052f5f0
mov eax, dword [esp + 0x150]
cmp eax, ebx
je 0x4edca3
call fcn.00472510
mov dword [esp + 0x150], ebx
mov dword [esp + 0x154], ebx
mov dword [esp + 0x158], ebx
push 0x100d1420
lea esi, [esp + 0x90]
call fcn.0052f5f0
mov eax, esi
call fcn.00537250
mov eax, dword [esp + 0x25c]
cmp eax, ebx
je 0x4edccb
call fcn.00472510
mov esi, dword [esp + 0x3c]
cmp esi, ebx
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], ebx
mov dword [edx], edi
je 0x4edd18
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x33c]
call fcn.00532c00
mov eax, dword [0x100ef808]
push esi
push 1
push eax
call dword [0x100cf260]
cmp byte [esp + 0x354], 0
je 0x4edd18
mov esi, dword [esp + 0x350]
call fcn.005154d0
lea ecx, [esp + 0x4c]
push ecx
call fcn.004a5730
lea edx, [esp + 0x4c]
push edx
call fcn.004a5730
lea eax, [esp + 0x4c]
push eax
call fcn.004cd0f0
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4edd4a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4edd5e
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x4ee082
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [0x100ef594], ebx
je 0x4edde5
lea esi, [esp + 0x1f8]
call fcn.00537210
mov esi, eax
push 0x100d4f60
call fcn.0052f5f0
push 0x100d50a4
call fcn.0052f5f0
push edi
lea ebx, [esp + 0x29c]
call fcn.0051ac00
mov ecx, eax
mov eax, esi
call fcn.00537470
push 0x100d1420
mov esi, eax
call fcn.0052f5f0
lea eax, [esp + 0x1f8]
call fcn.00537250
mov esi, ebx
call fcn.00490320
xor ebx, ebx
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and edi, 0xefffffff
mov dword [eax], ebx
mov dword [ecx], edi
jmp 0x4edb62
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 0x14]
mov eax, dword [ebp + 0x10]
cmp eax, ecx
jae 0x4edfe7
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [edx + 0xc]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp + 0x14]
sub ecx, esi
je 0x4edf6f
sub ecx, 1
je 0x4edeef
sub ecx, 1
je 0x4ede70
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [ecx], esi
mov ecx, dword [edx]
push edx
mov edx, dword [ecx + 0xc]
mov dword [eax], 0xc000000d
call edx
cmp edi, esi
mov dword [esp + 0x10], esi
je 0x4ee082
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [eax + 8], esi
mov edx, dword [ebp + 0x24]
mov dword [edx], esi
je 0x4ede7f
lea ebx, [eax + 0xc]
jmp 0x4ede81
xor ebx, ebx
mov ecx, dword [ebp + 0x20]
mov edx, dword [eax + 0x34]
mov esi, dword [ebp + 0x18]
push ecx
mov ecx, dword [eax + 0x30]
push edx
mov edx, dword [eax + 0x2c]
push ecx
mov ecx, dword [eax + 0x28]
push edx
mov edx, dword [eax + 0x24]
push ecx
mov ecx, dword [eax + 0x20]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push eax
call fcn.004f43f0
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4edecd
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x4ee082
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp dword [eax + 8], esi
mov ecx, dword [ebp + 0x24]
mov dword [ecx], esi
je 0x4edefc
lea esi, [eax + 0xc]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x1b8], edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x1c0], ecx
mov ecx, dword [ebp + 0x1c]
push ecx
push edx
push eax
push esi
mov esi, dword [ebp + 0x18]
lea ecx, [esp + 0x1cc]
push ecx
call fcn.004f42c0
mov edx, dword [ebp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4edf4d
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push eax
call edx
mov dword [esp + 0x10], 0
test edi, edi
je 0x4ee082
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [eax]
mov edx, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x18]
mov dword [edx], esi
mov edx, dword [eax + 4]
mov dword [esp + 0x1b0], ecx
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x1b4], edx
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
lea edi, [esp + 0x1b8]
call fcn.004f4250
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4edfc1
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4ee082
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
sub eax, ecx
cmp eax, dword [edx + 0x20]
jae 0x4ee05c
mov edx, dword [edx + 0x18]
mov ecx, dword [ebp + 0x24]
lea eax, [edx + eax*4]
mov edx, dword [ebp + 0x20]
mov eax, dword [eax]
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
mov dword [ecx], esi
mov ecx, dword [0x100ef48c]
push edx
mov edx, dword [ebp + 0xc]
add ecx, 0x7c0
push eax
mov eax, dword [ecx]
push edx
mov edx, dword [eax + 0x24]
call edx
call eax
mov ecx, dword [ebp + 0x28]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x4ee03e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xc]
call eax
mov dword [esp + 0x10], esi
cmp edi, esi
je 0x4ee082
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [edx]
mov dword [ecx], 0x8000001a
mov ecx, dword [eax + 0xc]
push edx
call ecx
cmp edi, esi
mov dword [esp + 0x10], esi
je 0x4ee082
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
lea eax, [esp + 0x64]
call fcn.004e4310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24