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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [ebp + 0x44]
push ebx
push esi
push edi
xor edi, edi
mov ebx, 1
mov dword [eax], edi
cmp dword [ecx + 4], ebx
mov dword [esp + 0x4c], ecx
jne 0x4da630
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x30]
push ecx
push esi
call fcn.004e61e0
add esp, 8
test eax, eax
jne 0x4d9753
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x2c]
cmp eax, edi
je 0x4d9793
cmp eax, 2
je 0x4d9789
cmp eax, ebx
je 0x4d9789
cmp eax, 3
je 0x4d9789
cmp eax, 4
je 0x4d9793
cmp eax, 5
je 0x4d9789
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
cmp eax, 4
je 0x4d9793
cmp eax, 5
jne 0x4d97ae
test ebx, esi
je 0x4d97ae
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov esi, dword [ebp + 0x18]
lea edx, [esp + 0xf8]
push edx
mov ecx, esi
call fcn.004e5920
mov eax, dword [ebp + 0x14]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4d97d3
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
lea eax, [esp + 0x34]
push 4
push eax
call fcn.004c15e0
lea ecx, [esp + 0x40]
push 4
push ecx
call fcn.004c15e0
lea edx, [esp + 0x28]
push 4
push edx
mov dword [esp + 0x58], edi
call fcn.004c15e0
lea eax, [esp + 0x34]
push 4
push eax
call fcn.004c15e0
add esp, 0x20
lea ecx, [esp + 0x2c]
call fcn.004f7130
lea ecx, [esp + 0x24]
call fcn.004f7130
lea ecx, [esp + 0x54]
call fcn.004e5cb0
mov dword [esp + 0x44], ebx
lea esp, [esp]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call fcn.004e5ba0
test eax, eax
je 0x4d9f39
cmp dword [esp + 0x54], edi
je 0x4d9892
lea edx, [esp + 0x58]
push edx
call fcn.004e62a0
add esp, 4
test eax, eax
je 0x4d9911
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push eax
mov dword [esp + 0x54], 0x10
push ecx
mov ebx, 1
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ebx
call fcn.004f71d0
push eax
lea ecx, [esp + 0x30]
call fcn.004f7230
jmp 0x4d9958
lea edx, [esp + 0x58]
push edx
call fcn.004e5d40
add esp, 4
test eax, eax
je 0x4d9dad
mov eax, dword [esp + 0x60]
cmp eax, 1
jne 0x4d9919
mov eax, dword [0x100b7078]
mov esi, dword [eax + 0x308]
lea ecx, [esp + 0x118]
push ecx
mov ecx, dword [ebp + 0x18]
push edi
push 0x40
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x118]
push eax
call fcn.004e5ab0
push eax
push edi
lea ecx, [esp + 0xdc]
call fcn.004f6f10
mov ecx, eax
call fcn.004f6ee0
push eax
call esi
test eax, eax
jne 0x4d9911
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0x58]
push edx
mov dword [esp + 0x54], ecx
push eax
jmp 0x4d9871
xor ebx, ebx
mov dword [esp + 0x44], ebx
jmp 0x4d9958
cmp eax, edi
jne 0x4d9f26
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x64]
push ecx
push edx
lea eax, [esp + 0x104]
push eax
mov ecx, esi
call fcn.004e5980
push eax
call fcn.004e6310
add esp, 0x14
mov ebx, eax
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.004c15e0
add esp, 8
cmp ebx, edi
je 0x4d9abf
mov eax, dword [esp + 0x60]
sub eax, edi
je 0x4d9a1d
sub eax, 1
jne 0x4d9e56
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x28]
call fcn.004f6ec0
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x30]
call fcn.004f6ec0
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
push 3
lea eax, [esp + 0xc4]
push eax
lea eax, [esp + 0xc0]
push eax
lea eax, [esp + 0x8c]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4d99e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4d99fa
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x80]
cmp ecx, edi
je 0x4d9d5a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x80], edi
jmp 0x4d9d56
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x28]
call fcn.004f6ec0
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x30]
call fcn.004f6ec0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
and eax, 0x10
mov edx, dword [edx + 0x6c]
neg al
sbb eax, eax
neg eax
add eax, 1
push eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x80]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4d9a8c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4d9aa2
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x74]
cmp ecx, edi
je 0x4d9d5a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x74], edi
jmp 0x4d9d56
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov esi, 1
cmp eax, esi
jne 0x4d9add
cmp dword [esp + 0x60], edi
je 0x4d9e6f
lea ecx, [esp + 0x98]
call fcn.004e5cb0
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004e5ba0
test eax, eax
je 0x4d9b37
mov eax, dword [esp + 0xa4]
cmp eax, edi
je 0x4d9e88
cmp eax, esi
jne 0x4d9b37
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x4d9ea4
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x40], esi
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
jmp 0x4d9b3a
mov eax, dword [ebp + 0x2c]
cmp eax, esi
je 0x4d9edd
cmp eax, 4
je 0x4d9edd
mov eax, dword [esp + 0x60]
cmp eax, edi
jne 0x4d9bf3
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x24]
lea edx, [esp + 0x18]
push edx
and esi, 1
push esi
push eax
call fcn.004e61c0
add esp, 8
push eax
push esi
call fcn.004f1100
add esp, 0xc
cmp eax, edi
jne 0x4d9ec0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov ecx, dword [ecx + 8]
mov edx, dword [ecx]
mov edx, dword [edx + 0x68]
push eax
xor eax, eax
cmp esi, edi
setne al
add eax, 1
push eax
lea eax, [esp + 0x60]
push eax
push eax
lea eax, [esp + 0x74]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4d9bc0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
mov eax, dword [esi]
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4d9bd6
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x64]
cmp ecx, edi
je 0x4d9d5a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov dword [esp + 0x64], edi
jmp 0x4d9d56
cmp eax, esi
jne 0x4d9d56
lea edx, [esp + 0x1c]
push edx
call fcn.004f2620
add esp, 4
cmp eax, edi
jne 0x4d9ec0
mov eax, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x104]
push ecx
mov ecx, dword [ebp + 0x18]
call fcn.004e5980
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x80]
call fcn.004f6f80
mov ecx, dword [0x100b7078]
mov dword [esp + 0x3c], edi
mov esi, dword [ecx + 0x150]
push 1
push 3
lea ecx, [esp + 0x118]
call fcn.004f6ef0
mov ecx, eax
call fcn.004f6ee0
push eax
push edi
push 0x40
lea ecx, [esp + 0x8c]
call fcn.004f6ee0
push eax
push edi
lea ecx, [esp + 0xe4]
call fcn.004f6f10
mov ecx, eax
call fcn.004f6ee0
push eax
push 0x180
lea edx, [esp + 0x50]
push edx
call esi
test eax, eax
jne 0x4d9d12
mov eax, dword [0x100b7078]
mov esi, dword [eax + 0x240]
push 4
push 0x28
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0xbc]
call fcn.004f6ef0
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esp + 0x48]
push eax
push edx
call esi
test eax, eax
jne 0x4d9d12
test dword [esp + 0xe8], 0x20
jne 0x4d9d12
mov eax, dword [0x100b7078]
or dword [esp + 0xe8], 0x20
mov esi, dword [eax + 0x218]
push 4
push 0x28
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x98]
call fcn.004f6ef0
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esp + 0x48]
push eax
push edx
call esi
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x64]
push eax
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x28]
push eax
call edx
push eax
lea ecx, [esp + 0x14]
call fcn.004f8030
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4d9d4d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x3c]
call fcn.004c8af0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.004cb530
cmp esi, edi
je 0x4d9d75
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, dword [esp + 0x10]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x4d9d9d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x4d9d9d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], edi
cmp ebx, edi
je 0x4d9f39
mov esi, dword [ebp + 0x18]
jmp 0x4d9830
cmp dword [0x100b7158], edi
je 0x4d9e09
push 0x10078fbc
push 0x10083f88
lea eax, [esp + 0x60]
push eax
push 0x10083c5c
push 0x10083f40
lea ecx, [esp + 0xa0]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcc80
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x8c]
call fcn.004bba80
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc000003b
lea ecx, [esp + 0x24]
call fcn.004f7250
lea ecx, [esp + 0x2c]
call fcn.004f7250
lea ecx, [esp + 0x1c]
call fcn.0050ed20
lea ecx, [esp + 0x18]
call fcn.0050ed20
lea ecx, [esp + 0x34]
call fcn.004cbb10
lea ecx, [esp + 0x14]
call fcn.0050ed20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x40
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x10]
call fcn.0050ed20
jmp 0x4d9e17
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc000003a
call fcn.0050ed20
jmp 0x4d9e17
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc000003a
call fcn.0050ed20
jmp 0x4d9e17
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000034
lea ecx, [esp + 0x10]
call fcn.0050ed20
jmp 0x4d9e17
mov edx, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [edx], edi
mov dword [ecx], eax
lea ecx, [esp + 0x10]
call fcn.0050ed20
jmp 0x4d9e17
test dword [ebp + 0x30], esi
je 0x4d9f0a
mov ecx, dword [ebp + 0x18]
call fcn.004e5b10
test eax, eax
je 0x4d9f0a
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x10]
mov dword [eax], 0xc0000103
call fcn.0050ed20
jmp 0x4d9e17
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x10]
mov dword [edx], 0xc0000034
call fcn.0050ed20
jmp 0x4d9e17
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000229
jmp 0x4d9e17
or ebx, 0xffffffff
cmp dword [esp + 0x44], edi
je 0x4da249
mov edx, dword [ebp + 0x2c]
cmp edx, 2
jne 0x4d9fb0
mov esi, dword [ebp + 0x30]
test esi, 1
je 0x4d9f78
mov ecx, dword [ebp + 0x18]
call fcn.004e5b10
test eax, eax
je 0x4d9f78
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc0000103
jmp 0x4d9e17
test esi, 0x40
je 0x4d9f9d
test dword [esp + 0x50], 0x10
je 0x4d9f9d
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc00000ba
jmp 0x4d9e17
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000035
jmp 0x4d9e17
cmp edx, 1
je 0x4da23b
cmp edx, 3
je 0x4da23b
cmp edx, edi
je 0x4d9fd4
cmp edx, 4
je 0x4d9fd4
cmp edx, 5
jne 0x4da24e
mov esi, dword [ebp + 0x30]
mov ecx, dword [esp + 0x50]
mov eax, esi
and eax, 0x40
je 0x4d9ffd
test ecx, 0x10
je 0x4d9ffd
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc00000ba
jmp 0x4d9e17
cmp eax, edi
jne 0x4da024
test esi, 1
jne 0x4da024
test ecx, 0x10
je 0x4da024
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
mov dword [edx], 0xc0000035
jmp 0x4d9e17
cmp edx, edi
jne 0x4da043
test ecx, 0x10
je 0x4da043
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc000000d
jmp 0x4d9e17
test esi, 1
je 0x4da06a
mov ecx, dword [ebp + 0x18]
call fcn.004e5b10
test eax, eax
je 0x4da06a
mov edx, dword [ebp + 0x40]
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
mov dword [eax], 0xc000000d
jmp 0x4d9e17
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.004c15e0
mov esi, dword [esp + 0x1c]
mov edx, dword [esi]
mov eax, dword [edx + 0x18]
add esp, 8
mov ecx, esi
call eax
cmp eax, 3
jne 0x4da0fe
lea ecx, [esp + 0x1c]
push ecx
call fcn.004f2620
add esp, 4
cmp eax, edi
jne 0x4d9ec0
mov eax, dword [esi]
lea edx, [esp + 0x78]
push edx
mov edx, dword [eax + 0x1c]
lea ecx, [esp + 0x88]
push ecx
mov ecx, esi
call edx
mov ecx, eax
call fcn.004f6ec0
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 8]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x64]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x28]
push eax
call edx
push eax
lea ecx, [esp + 0x14]
call fcn.004f8030
lea ecx, [esp + 0x20]
call fcn.0050ed20
lea ecx, [esp + 0x84]
call fcn.004f7250
jmp 0x4da1bc
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
call edx
xor ecx, ecx
cmp eax, 2
mov eax, dword [ebp + 0x24]
sete cl
lea edx, [esp + 0x18]
push edx
mov esi, ecx
push esi
push eax
call fcn.004e61c0
add esp, 8
push eax
push esi
call fcn.004f1100
add esp, 0xc
cmp eax, edi
je 0x4da150
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x10]
mov dword [edx], eax
call fcn.0050ed20
jmp 0x4d9e17
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x28]
call fcn.004f6ec0
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x30]
call fcn.004f6ec0
mov edx, dword [esp + 0x4c]
mov edi, dword [edx + 8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, dword [edi]
push eax
mov eax, dword [edx + 0x18]
add esi, 0x68
call eax
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x90]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call edx
push eax
lea ecx, [esp + 0x14]
call fcn.004f8030
lea ecx, [esp + 0x20]
call fcn.0050ed20
xor edi, edi
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call edx
xor ecx, ecx
cmp dword [eax], edi
setne cl
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.0050ed20
cmp esi, edi
je 0x4da20b
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 0x38]
push edx
call eax
lea ecx, [esp + 0x20]
call fcn.0050ed20
jmp 0x4da226
lea ecx, [esp + 0x34]
call fcn.004cb5d0
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x3c]
call fcn.004cb530
mov ebx, dword [ebp + 0x2c]
neg ebx
sbb ebx, ebx
lea ecx, [esp + 0x10]
and ebx, 3
call fcn.0050ed20
jmp 0x4da24e
mov eax, dword [ebp + 0x40]
mov dword [eax], 1
jmp 0x4d9e17
mov ebx, 2
lea ecx, [esp + 0x48]
push 4
push ecx
call fcn.004c15e0
add esp, 8
cmp dword [esp + 0x18], edi
je 0x4da479
lea edx, [esp + 0x44]
push 4
push edx
call fcn.004c15e0
add esp, 8
cmp dword [esp + 0x40], edi
je 0x4da3f9
test dword [ebp + 0x30], 1
je 0x4da2ae
mov eax, dword [ebp + 0x40]
mov ecx, dword [ebp + 0x3c]
mov dword [eax], edi
mov dword [ecx], 0xc0000103
lea ecx, [esp + 0x44]
call fcn.0050ed20
lea ecx, [esp + 0x48]
call fcn.0050ed20
jmp 0x4d9e17
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x64], ecx
sub eax, 2
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x18]
add ecx, 2
mov word [esp + 0x64], cx
mov esi, dword [eax]
mov ecx, dword [ebp + 0x28]
lea edx, [esp + 0x44]
push edx
mov edx, dword [ebp + 0x24]
mov edi, eax
mov eax, dword [ebp + 0x30]
push eax
push ecx
push 0
push edx
add esi, 0xc
call fcn.004e61c0
mov edx, dword [esi]
add esp, 8
push eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, edi
call edx
test eax, eax
jne 0x4da461
mov ecx, dword [ebp + 0x18]
call fcn.004e5b10
test eax, eax
je 0x4da39b
mov esi, dword [ebp + 0x18]
lea eax, [esp + 0x8c]
push eax
mov ecx, esi
call fcn.004e5b20
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0xb4]
push edx
mov ecx, esi
call fcn.004e5980
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.004f6f80
mov eax, dword [esp + 0x18]
mov esi, dword [eax]
mov edi, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
add esi, 0x18
call fcn.004f6ee0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
jne 0x4da39b
mov eax, dword [esp + 0x40]
test al, 0x20
jne 0x4da39b
mov ecx, dword [esp + 0x18]
or eax, 0x20
mov dword [esp + 0x40], eax
mov esi, dword [ecx]
mov edi, ecx
push eax
lea ecx, [esp + 0x70]
add esi, 0x1c
call fcn.004f6ee0
push eax
mov eax, dword [esi]
mov ecx, edi
call eax
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x70]
push eax
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.004e3c40
add esp, 0x18
push eax
lea ecx, [esp + 0x44]
call fcn.004cb510
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
call fcn.004f8030
lea ecx, [esp + 0x40]
call fcn.0050ed20
lea ecx, [esp + 0x20]
call fcn.0050ed20
lea ecx, [esp + 0x44]
call fcn.0050ed20
xor edi, edi
jmp 0x4da542
push 0x100782ec
lea ecx, [esp + 0x90]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0x68], edx
mov esi, dword [eax]
mov edx, dword [ebp + 0x28]
mov edi, eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
push 0x100782ec
lea ecx, [esp + 0xa0]
add esi, 0x10
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
test eax, eax
je 0x4da39b
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
and eax, 0xefffffff
mov dword [ecx], 0
mov dword [edx], eax
jmp 0x4da297
cmp dword [esp + 0x1c], edi
je 0x4da542
mov esi, dword [ebp + 0x30]
test esi, 1
je 0x4da4aa
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
lea ecx, [esp + 0x48]
mov dword [edx], 0xc0000103
call fcn.0050ed20
jmp 0x4d9e17
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.004c15e0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0x3c]
push eax
call edx
cmp eax, edi
je 0x4da4f3
mov ecx, dword [ebp + 0x40]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edi
and eax, 0xefffffff
lea ecx, [esp + 0x3c]
mov dword [edx], eax
call fcn.0050ed20
lea ecx, [esp + 0x48]
call fcn.0050ed20
jmp 0x4d9e17
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push esi
push eax
push ecx
push edx
lea eax, [esp + 0x30]
push eax
call fcn.004e4c00
add esp, 0x14
push eax
lea ecx, [esp + 0x44]
call fcn.004cb510
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x4c]
call fcn.004f8030
lea ecx, [esp + 0x40]
call fcn.0050ed20
lea ecx, [esp + 0x20]
call fcn.0050ed20
lea ecx, [esp + 0x3c]
call fcn.0050ed20
mov esi, dword [esp + 0x4c]
mov edx, dword [esi + 8]
push edx
lea ecx, [esp + 0x44]
call fcn.004f6e50
lea eax, [esp + 0x3c]
push 4
push eax
call fcn.004c15e0
mov edx, dword [ebp + 0x10]
add esp, 8
lea ecx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
call fcn.004d8340
test eax, eax
jne 0x4da607
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x3c]
call edx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x20], eax
call edx
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x4da607
lea ecx, [esp + 0x34]
call fcn.004cb4f0
lea ecx, [esp + 0x3c]
call fcn.0050ed20
lea ecx, [esp + 0x40]
call fcn.004f6e80
test dword [ebp + 0xc], 0x100000
je 0x4da5d1
test dword [ebp + 0x30], 0x30
jne 0x4da5d1
mov eax, 1
jmp 0x4da5d3
xor eax, eax
mov ecx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push eax
call fcn.004cec10
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x40]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
mov dword [eax + 4], ebx
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
mov dword [edx], edi
lea ecx, [esp + 0x48]
mov dword [eax], edi
call fcn.0050ed20
jmp 0x4d9e17
mov ecx, dword [ebp + 0x44]
mov dword [ecx], 1
lea ecx, [esp + 0x3c]
call fcn.0050ed20
lea ecx, [esp + 0x40]
call fcn.004f6e80
lea ecx, [esp + 0x48]
call fcn.0050ed20
jmp 0x4d9e17
mov edx, dword [ebp + 0x40]
pop edi
pop esi
mov dword [edx], ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x40