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

Disassembly:
sub esp, 0x94
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
shl edx, 6
mov eax, dword [ecx + 0x20]
push ebx
mov dword [esp + 0x18], eax
lea ebx, [edx + ecx + 0x24]
xor eax, eax
push ebp
mov al, byte [ebx + 0x28]
mov ebp, dword [ecx]
push esi
push edi
lea edx, [eax*8]
mov edi, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ecx + 0xc]
push edi
mov dword [esp + 0x54], edi
lea eax, [eax + edx*8 + 8]
mov dword [esp + 0x30], eax
mov edx, dword [eax + 0x18]
mov eax, dword [ebx]
mov esi, eax
mov dword [esp + 0x24], edx
shr eax, 0x17
and eax, 1
shr esi, 0x19
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
and esi, 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], esi
call fcn.004d30f0
push edi
mov dword [esp + 0x40], eax
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x18], eax
call fcn.004d30f0
mov dword [ebx + 0x20], eax
mov dword [esp + 0x50], eax
mov al, byte [ebx + 0x28]
add esp, 8
test al, al
jbe 0x4ea0d9
mov ecx, dword [esp + 0x2c]
test byte [ecx + 0x15], 8
je 0x4ea0d9
mov edx, dword [ebp + 0x48]
inc edx
mov eax, edx
mov dword [ebp + 0x48], edx
push eax
push 0
push 0x31
push edi
mov dword [ebx + 0xc], eax
call fcn.004d2cc0
add esp, 0x10
mov ecx, dword [ebx]
test ecx, 0x8000000
je 0x4ea2ca
mov eax, dword [ebx + 8]
mov dword [esp + 0x2c], eax
mov esi, dword [eax]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
lea eax, [esi + 2]
push eax
push ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
call fcn.004d5b90
mov ecx, dword [ebp + 0x54]
add esp, 8
inc ecx
cmp esi, 1
mov dword [esp + 0x28], eax
mov dword [ebp + 0x54], ecx
mov dword [esp + 0x14], 1
jl 0x4ea196
mov ecx, dword [esp + 0x1c]
xor esi, esi
test ecx, ecx
jle 0x4ea181
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
cmp dword [eax], edx
je 0x4ea14b
inc esi
add eax, 8
cmp esi, ecx
jl 0x4ea13d
jmp 0x4ea181
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
lea eax, [ecx + edx + 1]
mov edx, dword [esp + 0x18]
lea ecx, [esi + esi*2]
push eax
mov eax, dword [edx + ecx*4 + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
mov eax, dword [edx + eax*8]
mov ecx, dword [eax + 0xc]
push ecx
push ebp
call fcn.004d33c0
mov ecx, dword [esp + 0x28]
add esp, 0xc
cmp esi, ecx
je 0x4ea196
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jle 0x4ea12b
mov eax, dword [ebp + 0x54]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
dec eax
mov dword [ebp + 0x54], eax
mov eax, dword [esi + 0x14]
push edx
push eax
push 0x31
push edi
call fcn.004d2cc0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
inc ecx
dec edx
push ecx
push edx
push 0x31
push edi
call fcn.004d2cc0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
neg eax
mov edx, dword [esp + 0x48]
sbb eax, eax
and al, 0xf7
add eax, 0xfffffffe
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push 0x68
push edi
call fcn.004d1ff0
mov eax, dword [esp + 0x58]
add esp, 0x3c
test eax, eax
mov dword [esi + 0x1c], 0
jle 0x4ea251
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x18]
add ecx, 4
mov dword [esp + 0x18], eax
lea esi, [edx + 8]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1c]
cmp byte [edx], 0
je 0x4ea238
mov eax, dword [esi]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x14]
lea eax, [eax + eax*4]
lea eax, [edx + eax*8]
push eax
push ebx
call fcn.004ead80
add esp, 8
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
add edx, 8
add esi, 0xc
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], eax
jne 0x4ea216
mov esi, dword [esp + 0x20]
push edi
mov byte [ebx + 0x29], 1
mov dword [ebx + 0x2c], esi
call fcn.004d3170
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x44]
add esp, 4
test eax, eax
jl 0x4ea2c0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004eb060
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x4ea2a8
mov edx, dword [esp + 0x28]
push edx
push esi
push 0xc
push edi
call fcn.004d2cc0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x34
push edi
call fcn.004d2cc0
add esp, 0x20
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
push edx
push eax
push ebp
call fcn.004d5be0
add esp, 0xc
jmp 0x4eabb4
mov dword [esp + 0x10], 0
jmp 0x4ea2a8
test ch, 0x10
je 0x4ea381
push ebp
call fcn.004d5a70
mov ecx, dword [esp + 0xbc]
mov edx, dword [esp + 0xb8]
push 0
push 3
mov esi, eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x4c], esi
call fcn.004e9bf0
push esi
push ebx
push eax
push ebp
call fcn.004eae20
mov esi, eax
mov eax, dword [ebx + 0x1c]
push eax
push esi
push 0x27
push edi
mov dword [esp + 0x54], eax
call fcn.004d2cc0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x60]
add esp, 0x40
push esi
push edx
push eax
push 0x2f
push edi
call fcn.004d2030
mov ecx, dword [esp + 0x38]
mov eax, 1
add esp, 0x14
cmp dword [ecx + 0xc], eax
jne 0x4ea377
mov ecx, dword [esp + 0x40]
test ecx, ecx
jl 0x4ea377
push esi
push ecx
push 0x34
push edi
mov dword [esp + 0x20], eax
call fcn.004d2cc0
add esp, 0x10
mov edx, dword [esp + 0x2c]
push edx
push ebp
call fcn.004d5aa0
add esp, 8
mov byte [ebx + 0x29], 0x19
jmp 0x4eabb4
mov dword [esp + 0x10], 0
jmp 0x4ea360
test ch, 0x20
je 0x4ea5e8
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x20]
push 0
push 0x24
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0xffffffffffffffff
push edx
push eax
mov dword [esp + 0x30], 0x19
mov dword [esp + 0x34], 0
call fcn.004e9bf0
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xd0]
push 0
push 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push 0xffffffffffffffff
push eax
push ecx
call fcn.004e9bf0
add esp, 0x38
mov dword [esp + 0x34], eax
test esi, esi
je 0x4ea403
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ea480
mov eax, dword [eax]
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x20], 0x79
mov edx, dword [eax + 0xc]
mov byte [esp + 0x21], 0x38
push edx
push ebp
mov byte [esp + 0x2a], 0x59
mov byte [esp + 0x2b], 0x6d
mov dword [esp + 0x38], eax
call fcn.004d5350
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
push eax
mov eax, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x40]
xor edx, edx
push ecx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [esp + edx - 0x16]
push ecx
push edi
call fcn.004d2030
mov edx, dword [esp + 0x5c]
push 1
push edx
push ebp
call fcn.004d5240
mov eax, dword [esp + 0x70]
push eax
push ebp
call fcn.004d5aa0
mov ecx, dword [esp + 0x64]
push ecx
push ebx
call fcn.004ead80
add esp, 0x3c
jmp 0x4ea4a0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
mov ecx, esi
push edx
neg ecx
sbb ecx, ecx
push eax
and ecx, 0xffffffbf
add ecx, 0x78
push ecx
push edi
call fcn.004d2cc0
add esp, 0x10
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4ea502
mov ecx, dword [ebp + 0x48]
mov edx, eax
inc ecx
mov eax, dword [edx]
mov dword [ebp + 0x48], ecx
mov dword [esp + 0x2c], eax
push ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], ecx
push eax
push ebp
call fcn.004d33c0
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov al, byte [ecx]
cmp al, 0x4c
je 0x4ea4e5
cmp al, 0x4a
je 0x4ea4e5
mov eax, esi
neg eax
sbb eax, eax
and eax, 2
add eax, 0x4a
jmp 0x4ea4f0
mov eax, esi
neg eax
sbb eax, eax
and al, 0xfe
add eax, 0x4d
mov edx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
push edx
push ebx
call fcn.004ead80
add esp, 8
push edi
call fcn.004d3170
mov ecx, esi
mov edx, dword [esp + 0x24]
add esp, 4
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x2c], edx
neg ecx
sbb cl, cl
and cl, 0xc7
add cl, 0x6b
test eax, eax
mov byte [ebx + 0x29], cl
jne 0x4ea53b
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4ea53b
mov eax, 1
jmp 0x4ea53d
xor eax, eax
mov byte [ebx + 0x2a], al
mov eax, dword [esp + 0x40]
test eax, eax
jl 0x4ea5db
mov eax, dword [esp + 0x24]
push eax
call fcn.004eb060
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4ea570
cmp dword [esp + 0x14], 0x19
je 0x4eabb4
mov edi, dword [esp + 0x50]
push ebp
call fcn.004d5a70
mov ecx, dword [esp + 0x24]
mov esi, eax
push esi
push ecx
push 0x29
push edi
call fcn.004d2cc0
mov eax, dword [esp + 0x28]
add esp, 0x14
cmp eax, 0x19
je 0x4ea5b3
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edx
push eax
push ecx
push edi
call fcn.004d2030
push 0x6b
push edi
call fcn.004d2ce0
add esp, 0x1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4ea5cc
mov edx, dword [esp + 0x40]
push esi
push edx
push 0x34
push edi
call fcn.004d2cc0
add esp, 0x10
push esi
push ebp
call fcn.004d5aa0
add esp, 8
jmp 0x4eabb4
mov dword [esp + 0x10], 0
jmp 0x4ea561
test ecx, 0x30000
je 0x4eaa36
mov edx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x34]
xor eax, eax
mov dword [esp + 0x6c], 0x78
mov edx, dword [edx + 8]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], 0x37
mov edx, dword [edx + esi*4]
mov dword [esp + 0x74], 0x79
mov dword [esp + 0x18], edx
mov dl, byte [esp + 0xb0]
test dl, 1
mov dword [esp + 0x78], 0x59
mov dword [esp + 0x7c], 0x6d
mov dword [esp + 0x80], 0x38
mov dword [esp + 0x58], 0x19
mov dword [esp + 0x5c], 0x40
mov dword [esp + 0x60], 0x2a
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], eax
je 0x4ea69a
test ecx, 0x1000000
je 0x4ea69a
mov edx, dword [esp + 0x34]
cmp dword [edx + 4], esi
jle 0x4ea69a
mov eax, 1
mov dword [esp + 0x3c], eax
test ecx, 0x100000
je 0x4ea6d9
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x1c]
push 0x18
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.004e9bf0
mov dword [esp + 0x44], eax
add esp, 0x1c
mov eax, 1
test dword [ebx], 0x200000
je 0x4ea718
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0xb4]
push eax
mov eax, dword [esp + 0x1c]
push 0x24
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call fcn.004e9bf0
mov dword [esp + 0x54], eax
add esp, 0x1c
mov eax, 1
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0xbc]
push eax
push ecx
push edx
push ebx
push ebp
call fcn.004eaf40
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x1c]
add esp, 0x18
mov edx, dword [ecx + 0x28]
mov dword [esp + 0x14], eax
xor eax, eax
cmp byte [edx + esi], 0
mov ecx, dword [esp + 0x4c]
sete al
cmp ecx, eax
jne 0x4ea76d
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
jmp 0x4ea775
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
xor edx, edx
cmp eax, edx
je 0x4ea785
test byte [eax + 0x10], 0x28
mov dword [esp + 0x44], edx
je 0x4ea78d
mov dword [esp + 0x44], 1
cmp ecx, edx
je 0x4ea79b
test byte [ecx + 0x10], 0x28
mov dword [esp + 0x2c], edx
je 0x4ea7a3
mov dword [esp + 0x2c], 1
cmp eax, edx
jne 0x4ea7af
cmp esi, edx
mov dword [esp + 0x18], edx
jle 0x4ea7b7
mov dword [esp + 0x18], 1
cmp eax, edx
mov dword [esp + 0x30], esi
je 0x4ea80e
mov eax, dword [ebp + 0x54]
cmp ecx, edx
mov dword [esp + 0x3c], eax
je 0x4ea7ce
inc eax
mov dword [ebp + 0x54], eax
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
lea eax, [ecx + esi]
push eax
mov eax, dword [edx]
mov ecx, dword [eax + 0xc]
push ecx
push ebp
call fcn.004d33c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
push eax
lea eax, [ecx + esi]
mov dword [ebp + 0x54], edx
push eax
push 0x46
push edi
call fcn.004d2cc0
lea edx, [esi + 1]
add esp, 0x1c
mov dword [esp + 0x30], edx
jmp 0x4ea83f
cmp dword [esp + 0x3c], edx
je 0x4ea83f
mov eax, dword [esp + 0x10]
add eax, esi
push eax
push 0
push 0x75
push edi
call fcn.004d2cc0
lea ecx, [esi + 1]
add esp, 0x10
mov dword [esp + 0x30], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
push ebp
call fcn.004eade0
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
push 0xfffffffffffffff2
push edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x38]
push edx
lea edx, [eax + ecx*2]
mov eax, dword [esp + 0x70]
lea ecx, [eax + edx*2]
mov edx, dword [esp + ecx*4 + 0x88]
push edx
push edi
call fcn.004d1ff0
mov eax, dword [esp + 0x54]
add esp, 0x2c
test eax, eax
mov dword [esp + 0x30], esi
je 0x4ea8e3
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add eax, esi
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0xc]
push eax
push ebp
call fcn.004d33c0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ecx
lea eax, [edx + esi]
push eax
push 0x46
push edi
call fcn.004d2cc0
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x2c]
lea eax, [esi + 1]
push ecx
push eax
push edx
push ebp
call fcn.004eade0
lea eax, [esi + 1]
add esp, 0x2c
mov dword [esp + 0x30], eax
push edi
call fcn.004d3170
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x4ea8ff
test esi, esi
jne 0x4ea8ff
xor eax, eax
jmp 0x4ea904
mov eax, 1
mov ecx, dword [esp + 0x4c]
inc ecx
imul ecx, eax
mov eax, dword [esp + ecx*4 + 0x58]
cmp eax, 0x19
je 0x4ea949
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
push 0xfffffffffffffff2
push edx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
push edi
call fcn.004d1ff0
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x48]
cmp eax, edx
setne al
push eax
push edi
call fcn.004d2ce0
add esp, 0x24
push ebp
call fcn.004d5a70
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
add esp, 4
test eax, 0x300000
je 0x4ea987
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push ecx
push esi
push edx
push 3
push edi
call fcn.004d2030
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x46
push edi
call fcn.004d2cc0
add esp, 0x24
mov edx, dword [esp + 0x38]
push edx
push ebx
call fcn.004ead80
mov eax, dword [esp + 0x30]
push eax
push ebx
call fcn.004ead80
mov eax, dword [esp + 0x50]
add esp, 0x10
test eax, eax
jl 0x4ea9b7
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004eb060
add esp, 4
jmp 0x4ea9b9
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4ea9c9
test eax, eax
je 0x4eaa0b
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push edx
push 0x3a
push edi
call fcn.004d2cc0
mov eax, dword [esp + 0x20]
add esp, 0x10
test eax, eax
push esi
je 0x4ea9f9
mov eax, dword [esp + 0x44]
push eax
push 0x34
push edi
call fcn.004d2cc0
add esp, 0x10
jmp 0x4eaa0f
mov ecx, dword [esp + 0x24]
push ecx
push 5
push edi
call fcn.004d2cc0
add esp, 0x10
jmp 0x4eaa0f
mov esi, dword [esp + 0x14]
push esi
push ebp
call fcn.004d5aa0
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
add esp, 8
mov dword [ebx + 0x2c], eax
neg edx
sbb dl, dl
and dl, 0xc7
add dl, 0x6b
mov byte [ebx + 0x29], dl
jmp 0x4eabb4
test ecx, 0x10000000
je 0x4eab88
mov eax, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x3c], ecx
jl 0x4eaa70
mov edx, dword [esp + 0x24]
mov ecx, 1
cmp dword [edx + 0xc], ecx
jne 0x4eaa70
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x4eaa90
push ebp
mov dword [esp + 0x14], 0
call fcn.004d5a70
push eax
push 0
push 0x75
push edi
mov dword [esp + 0x2c], eax
call fcn.004d2cc0
add esp, 0x14
mov esi, dword [esp + 0x2c]
mov eax, 1
mov word [esp + 0x64], ax
mov word [esp + 0x66], ax
mov eax, dword [esp + 0x3c]
mov ecx, 0xe
lea edi, [esp + 0x6c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax + 0x14]
xor edi, edi
test ecx, ecx
jle 0x4eab05
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 8]
cmp ecx, eax
je 0x4eaad1
cmp word [esi + 0x10], 0x200
jne 0x4eaaf8
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
push 0x38
push 0
lea eax, [esp + 0x70]
push edx
push eax
push ebp
call fcn.004e76a0
add esp, 0x18
test eax, eax
je 0x4eaaf8
push eax
call fcn.004eb1b0
add esp, 4
mov ecx, dword [esp + 0x3c]
inc edi
add esi, 0x28
cmp edi, dword [ecx + 0xc]
jl 0x4eaabe
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x50]
push edx
push edi
call fcn.004d3150
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x4eab74
push ebp
call fcn.004d5a70
mov ecx, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esp + 0x3c]
push esi
push eax
push ecx
push 0x33
push edi
call fcn.004d2030
mov edx, dword [esp + 0x38]
push esi
push edx
push 5
push edi
mov dword [esp + 0x70], eax
call fcn.004d2cc0
push esi
push ebp
call fcn.004d5aa0
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x78]
add esp, 0x30
mov byte [ebx + 0x29], 0x61
mov dword [ebx + 0x30], eax
push ecx
push ebx
call fcn.004ead80
add esp, 8
jmp 0x4eabb4
mov ecx, dword [esp + 0x54]
mov byte [ebx + 0x29], 0x19
push ecx
push ebx
call fcn.004ead80
add esp, 8
jmp 0x4eabb4
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
push edx
push eax
push 0x78
push edi
mov byte [ebx + 0x29], 0x6b
mov dword [ebx + 0x2c], eax
call fcn.004d2cc0
add esp, 0x10
inc eax
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x2a], 1
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [esi + 4]
push ecx
call fcn.004e81e0
mov edi, dword [esp + 0xc0]
mov ecx, dword [esp + 0xbc]
not edx
mov esi, dword [esi + 0x14]
and edi, edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc0], edi
not eax
and ecx, eax
mov eax, dword [edx + 0xc]
add esp, 8
xor edi, edi
test eax, eax
mov dword [esp + 0xb4], ecx
jle 0x4eac73
mov dword [esp + 0x2c], eax
test byte [esi + 0x12], 6
jne 0x4eac65
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
and eax, ecx
mov ecx, dword [esi + 0x24]
and ecx, edx
or eax, ecx
jne 0x4eac65
mov ecx, dword [ebx + 0xc]
mov eax, dword [esi]
test ecx, ecx
je 0x4eac37
mov cl, byte [eax + 2]
and cl, 1
cmp cl, 1
jne 0x4eac65
mov edx, dword [esp + 0x48]
mov ecx, dword [ebp + 0x54]
push 8
push edx
add ecx, edi
push eax
push ebp
mov dword [ebp + 0x54], ecx
call fcn.004d54b0
mov ecx, dword [ebp + 0x54]
add esp, 0x10
sub ecx, edi
mov edi, 1
mov dword [ebp + 0x54], ecx
mov al, byte [esi + 0x12]
or al, 4
mov byte [esi + 0x12], al
mov eax, dword [esp + 0x2c]
add esi, 0x28
dec eax
mov dword [esp + 0x2c], eax
jne 0x4eac01
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4ead0c
mov esi, dword [esp + 0x50]
push esi
call fcn.004d3170
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0xc]
push eax
push 1
push 0x31
push esi
call fcn.004d2cc0
mov ecx, dword [ebx + 0x10]
push ecx
push ebp
call fcn.004e5ef0
mov edx, dword [ebx + 0x14]
push edx
push ebp
call fcn.004e5ef0
mov eax, dword [esp + 0x48]
add esp, 0x24
mov ecx, eax
xor edi, edi
mov esi, dword [eax + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
jle 0x4ead0c
test byte [esi + 0x12], 6
jne 0x4eacff
mov eax, dword [esi + 0x20]
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
and eax, ecx
mov ecx, dword [esi + 0x24]
and ecx, edx
or eax, ecx
jne 0x4eacff
mov edx, dword [esp + 0x48]
mov eax, dword [esi]
push 8
push edx
push eax
push ebp
call fcn.004d54b0
mov al, byte [esi + 0x12]
add esp, 0x10
or al, 4
mov byte [esi + 0x12], al
mov ecx, dword [esp + 0x24]
inc edi
add esi, 0x28
cmp edi, dword [ecx + 0xc]
jl 0x4eacc2
mov edi, dword [esp + 0x40]
test edi, edi
jl 0x4ead62
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4ead62
push ebp
call fcn.004d5a70
mov esi, eax
mov eax, dword [ebx]
add esp, 4
test eax, 0x8000000
push esi
je 0x4ead3a
mov edx, dword [esp + 0x24]
push edx
push 0xc
jmp 0x4ead41
mov eax, dword [esp + 0x24]
push eax
push 0x29
mov ebx, dword [esp + 0x5c]
push ebx
call fcn.004d2cc0
add esp, 0x10
push esi
push edi
push 0x34
push ebx
call fcn.004d2cc0
push esi
push ebp
call fcn.004d5aa0
add esp, 0x18
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret