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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
cmp dword [0x100b711c], 0
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x20], ebx
je 0x4fcc7b
test eax, eax
je 0x4fcc7b
mov dword [eax], 0
lea eax, [esp + 0x14]
push 4
push eax
call fcn.004c15e0
mov edi, dword [ebp + 0x10]
lea esi, [edi + 4]
add esp, 8
cmp dword [esi], 0
je 0x4fcde6
lea edx, [esp + 0x14]
push edx
lea ecx, [ebx + 0x14]
push esi
mov dword [esp + 0x78], ecx
call fcn.004fa510
test eax, eax
je 0x4fcde6
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x20]
push edx
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
test eax, eax
jne 0x4fcd9f
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx + 0x2c]
call eax
test eax, eax
jne 0x4fcd9f
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.004c15e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
add esp, 8
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [edi + 8]
push eax
call edx
test eax, eax
je 0x4fcd54
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
and eax, 0xefffffff
mov dword [ecx], 0
mov dword [edx], eax
lea ecx, [esp + 0x1c]
call fcn.0050ed20
lea ecx, [esp + 0x20]
call fcn.0050ed20
lea ecx, [esp + 0x14]
call fcn.0050ed20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.004fa740
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x74]
lea edx, [esp + 0x2c]
mov esi, eax
push edx
mov dword [esp + 0x30], esi
call fcn.004fa3e0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4fcd8b
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], 0
mov dword [eax], 0
jmp 0x4fcd30
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x20]
test eax, eax
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
mov dword [edx], 0xc000017c
je 0x4fcdc9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4fe151
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
lea ecx, [esp + 0xb0]
call fcn.0050bf30
push 0
lea eax, [esp + 0xb4]
push eax
push edi
mov ecx, ebx
call fcn.004fcad0
test eax, eax
jne 0x4fceb4
cmp dword [0x100b7158], eax
je 0x4fce3e
push 0x10085dac
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
cmp dword [ebx + 0x38], 1
jne 0x4fcea9
mov esi, dword [esi]
test esi, esi
je 0x4fce6e
push esi
call fcn.0050c450
add esp, 4
test eax, eax
je 0x4fce6e
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
mov dword [edx], 0xc000017c
jmp 0x4fe13c
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0xb0]
call fcn.004f8210
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4fe151
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
mov ecx, dword [ebp + 0x24]
mov dword [ecx], 1
jmp 0x4fce80
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xb4]
call fcn.0050c0f0
jmp 0x4fced0
lea ecx, [esp + 0xb0]
call fcn.004f3bc0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x28]
mov dword [esp + 0x58], esi
call eax
test eax, eax
je 0x4fd3d5
mov ecx, esi
call fcn.0050c2e0
test eax, eax
jne 0x4fd820
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
je 0x4fd0f3
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x40]
push eax
call edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x30]
lea edx, [esp + 0x30]
push edx
call eax
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x4fdab5
lea ecx, [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0x104]
push eax
call edx
mov ecx, eax
call fcn.004f6ec0
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x7c]
push edx
mov edx, dword [ebp + 0x18]
push edx
lea edx, [esp + 0xf0]
push edx
mov edx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x60]
push edx
call eax
lea ecx, [esp + 0x100]
call fcn.004f7250
lea ecx, [esp + 0x78]
push 4
push ecx
call fcn.004c15e0
lea edx, [esp + 0x84]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x40]
add esp, 0x10
push eax
push ecx
lea ecx, [esp + 0x80]
call fcn.004f7f90
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0xa4]
call fcn.0050c110
mov ecx, dword [ebp + 0x10]
push ebx
lea eax, [esp + 0xb4]
push eax
push ecx
mov ecx, edi
call fcn.004fcad0
test eax, eax
je 0x4fd837
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0xb4]
call fcn.0050c0f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x9c]
call edx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x58], eax
call edx
mov ecx, dword [esp + 0x58]
cmp eax, ecx
je 0x4fd8bd
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4fd049
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x9c]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4fd07a
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x9c]
cmp eax, ebx
je 0x4fd07a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x9c], ebx
lea ecx, [esp + 0xa0]
call fcn.0050c140
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x4fd09a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x4fd0ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x4fd0c2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x50], ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x4fd0d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x4fced0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], ebx
jmp 0x4fced0
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x38], 1
jne 0x4fd2f3
lea eax, [esp + 0x38]
push 4
push eax
call fcn.004c15e0
lea ecx, [esp + 0x40]
push ecx
call fcn.00513050
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
jne 0x4fdac8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x30]
lea eax, [esp + 0x3c]
push eax
call edx
cmp dword [esp + 0x3c], ebx
je 0x4fdda1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
lea eax, [esp + 0xf0]
push eax
lea eax, [esp + 0xfc]
push eax
call edx
mov ecx, eax
call fcn.004f6ec0
mov edx, dword [esp + 0x38]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x7c]
push edx
mov edx, dword [ebp + 0x18]
push edx
lea edx, [esp + 0xf8]
push edx
mov edx, dword [esp + 0x48]
push edx
lea edx, [esp + 0x2c]
push edx
call eax
lea ecx, [esp + 0xf8]
call fcn.004f7250
lea ecx, [esp + 0x80]
push 4
push ecx
call fcn.004c15e0
lea edx, [esp + 0x8c]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
add esp, 0x10
push eax
push ecx
lea ecx, [esp + 0x88]
call fcn.004f7f90
mov edx, dword [edi + 0xc]
push edx
lea ecx, [esp + 0x74]
call fcn.0050c110
mov ecx, dword [ebp + 0x10]
push ebx
lea eax, [esp + 0xb4]
push eax
push ecx
mov ecx, edi
call fcn.004fcad0
test eax, eax
je 0x4fdb43
lea edx, [esp + 0x88]
push edx
lea ecx, [esp + 0xb4]
call fcn.0050c0f0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x10]
call edx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
mov ecx, esi
mov dword [esp + 0x58], eax
call edx
mov ecx, dword [esp + 0x58]
cmp ecx, eax
je 0x4fdbb8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4fd240
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x88]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x4fd271
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x4fd271
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x88], ebx
lea ecx, [esp + 0x70]
call fcn.0050c140
mov eax, dword [esp + 0x84]
cmp eax, ebx
je 0x4fd294
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x84], ebx
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x4fd2ae
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x80], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4fd2c2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x4fd2d6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x3c], ebx
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4fced0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x38], ebx
jmp 0x4fced0
mov ebx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [0x100b7078]
mov eax, dword [eax + 0x5b0]
push ebx
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call eax
mov esi, eax
test esi, esi
jne 0x4fde41
test ebx, ebx
je 0x4fd330
mov dword [ebx], 1
mov eax, dword [edi + 0xc]
push eax
lea ecx, [esp + 0x48]
call fcn.0050c110
mov edx, dword [ebp + 0x10]
push 0
lea ecx, [esp + 0xb4]
push ecx
push edx
mov ecx, edi
call fcn.004fcad0
test eax, eax
je 0x4fddb4
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xb4]
call fcn.0050c0f0
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edi, eax
mov eax, dword [edx + 0xc]
call eax
cmp eax, edi
je 0x4fde24
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4fd39b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
mov dword [esp + 0x10], eax
je 0x4fd3c7
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4fd3c7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x44]
call fcn.0050c140
jmp 0x4fced0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
test eax, eax
jne 0x4fde54
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x38], 1
jne 0x4fe12a
mov ecx, esi
call fcn.0050c2e0
test eax, eax
je 0x4fdf88
lea ecx, [esp + 0x5c]
push 4
push ecx
call fcn.004c15e0
lea edx, [esp + 0x68]
push 4
push edx
call fcn.004c15e0
lea eax, [esp + 0x34]
push 4
push eax
call fcn.004c15e0
mov edi, dword [esp + 0x28]
xor ebx, ebx
add esp, 0x18
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x4fd442
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
lea ecx, [esp + 0xa4]
call fcn.0050c3b0
lea eax, [esp + 0xa4]
push eax
mov ecx, esi
call fcn.0050c320
test eax, eax
je 0x4fd65b
jmp 0x4fd470
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x10c]
push edx
call fcn.004e5ab0
mov ecx, dword [0x100b7078]
push ebx
push 0x40
mov dword [esp + 0x20], ebx
mov esi, dword [ecx + 0x718]
push eax
push ebx
lea ecx, [esp + 0x120]
call fcn.004f6f10
mov ecx, eax
call fcn.004f6ee0
push eax
push 1
lea edx, [esp + 0x20]
push edx
call esi
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [esp + 0x18]
add esi, 1
call fcn.004c8af0
cmp esi, ebx
je 0x4fd5ba
lea eax, [esp + 0x48]
push 4
push eax
call fcn.004c15e0
mov edx, dword [edi]
mov edx, dword [edx + 0x64]
add esp, 8
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xa8]
push ecx
mov ecx, edi
call edx
test eax, eax
je 0x4fd56c
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0x84]
lea eax, [esp + 0xa4]
push eax
push edi
lea eax, [esp + 0x30]
push eax
call edx
mov esi, eax
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4fd533
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x48], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x48], eax
je 0x4fd549
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4fd561
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x48]
mov dword [esp + 0x28], ebx
push eax
push edi
lea ecx, [esp + 0x64]
call fcn.004f7f90
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov edi, dword [esp + 0x48]
cmp edi, ebx
je 0x4fd598
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esp + 0x48]
cmp eax, ebx
je 0x4fd598
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0xa4]
push eax
call fcn.0050c320
test eax, eax
jne 0x4fd470
mov dword [esp + 0x18], edi
jmp 0x4fd65b
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x18], edi
call fcn.0050c2e0
test eax, eax
jne 0x4fdf96
lea ecx, [esp + 0x24]
push ecx
call fcn.00513050
add esp, 4
cmp eax, ebx
jne 0x4fdfc4
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xc]
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
mov eax, dword [eax + 0x7c]
push edx
mov edx, dword [ebp + 0x18]
push edx
lea edx, [esp + 0xac]
push edx
push edi
lea edx, [esp + 0xbc]
push edx
call eax
mov ecx, dword [esp + 0xac]
push ecx
push edi
lea ecx, [esp + 0x64]
call fcn.004f7f90
cmp edi, ebx
je 0x4fd62a
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
mov edi, dword [esp + 0xac]
cmp edi, ebx
mov dword [esp + 0x18], edi
je 0x4fd65b
mov ecx, dword [edi]
mov edx, dword [ecx + 4]
push edi
call edx
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x4fd65b
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0xac], ebx
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
test eax, eax
je 0x4fdfd5
lea eax, [esp + 0x4c]
push 4
push eax
call fcn.004c15e0
mov eax, dword [esp + 0x2c]
mov edx, dword [ebp + 0xc]
mov esi, dword [eax]
add esp, 8
lea ecx, [esp + 0x4c]
push ecx
push edx
push 0x100782ec
lea ecx, [esp + 0xe4]
mov ebx, eax
add esi, 0x10
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
push eax
mov eax, dword [esi]
mov ecx, ebx
call eax
test eax, eax
jne 0x4fe007
lea ecx, [esp + 0x54]
push 4
push ecx
call fcn.004c15e0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x54]
add esp, 8
lea edx, [esp + 0x54]
push edx
push eax
push ecx
push 0x100782ec
lea ecx, [esp + 0x74]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
push eax
push edi
call fcn.0050e540
add esp, 0x14
test eax, eax
jne 0x4fe028
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0xc]
push edx
lea ecx, [esp + 0x78]
call fcn.0050c110
mov ecx, dword [ebp + 0x10]
push 0
lea eax, [esp + 0xb4]
push eax
push ecx
mov ecx, esi
call fcn.004fcad0
test eax, eax
je 0x4fe052
lea edx, [esp + 0x94]
push edx
lea ecx, [esp + 0xb4]
call fcn.0050c0f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov ecx, dword [esp + 0x94]
mov ebx, eax
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
cmp eax, ebx
je 0x4fe0bf
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x4fd771
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x94]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x4fd7a2
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x94]
cmp eax, esi
je 0x4fd7a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x94], esi
lea ecx, [esp + 0x74]
call fcn.0050c140
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x4fd7bf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x54], esi
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x4fd7d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x4c], esi
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x4fd7ef
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x60]
cmp eax, esi
je 0x4fd803
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x5c]
cmp eax, esi
je 0x4fced0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x5c], esi
jmp 0x4fced0
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov dword [ecx], 0xc0000034
jmp 0x4fe133
cmp dword [0x100b7158], ebx
je 0x4fd869
push 0x10085dac
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
cmp dword [edi + 0x38], 1
jne 0x4fd8b2
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], ebx
mov dword [eax], 0xc0000229
lea ecx, [esp + 0xa0]
call fcn.0050c140
lea ecx, [esp + 0x78]
call fcn.004cbb10
lea ecx, [esp + 0x50]
call fcn.0050ed20
lea ecx, [esp + 0x30]
call fcn.0050ed20
lea ecx, [esp + 0x40]
call fcn.0050ed20
jmp 0x4fe133
mov ecx, dword [ebp + 0x24]
mov dword [ecx], 1
jmp 0x4fd87d
lea ecx, [esp + 0x78]
call fcn.004f7ee0
lea ecx, [esp + 0x9c]
call fcn.0050ed20
lea ecx, [esp + 0xa0]
call fcn.0050c140
lea edx, [esp + 0x8c]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x48]
mov esi, dword [eax]
mov ecx, dword [ebp + 0xc]
add esp, 8
mov ebx, eax
lea eax, [esp + 0x8c]
push eax
push ecx
push 0x100782ec
lea ecx, [esp + 0x70]
add esi, 0x10
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x4fd9b2
cmp dword [0x100b7158], 0
je 0x4fd98d
push 0x10078fbc
push esi
lea ecx, [esp + 0xe0]
call fcn.004bdd80
push eax
push 0x10085b2c
push 0x10085d70
lea ecx, [esp + 0x74]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
lea ecx, [esp + 0xd8]
call fcn.004aabe0
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and esi, 0xefffffff
mov dword [eax], 0
mov dword [ecx], esi
lea ecx, [esp + 0x8c]
call fcn.0050ed20
jmp 0x4fd889
lea edx, [esp + 0x90]
push 4
push edx
call fcn.004c15e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x58]
add esp, 8
lea eax, [esp + 0x90]
push eax
push ecx
push edx
push 0x100782ec
lea ecx, [esp + 0x74]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
push eax
push esi
call fcn.0050e540
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4fda65
cmp dword [0x100b7158], 0
je 0x4fda34
push 0x10085d40
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and esi, 0xefffffff
mov dword [eax], 0
mov dword [ecx], esi
lea ecx, [esp + 0x90]
call fcn.0050ed20
lea ecx, [esp + 0x8c]
call fcn.0050ed20
jmp 0x4fd889
mov edx, dword [esp + 0x90]
push edx
mov ecx, edi
call fcn.004fa740
mov esi, eax
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x30], esi
call fcn.004fa3e0
mov eax, dword [ebp + 0x20]
test eax, eax
mov edx, dword [ebp + 8]
mov dword [edx], esi
je 0x4fdaa1
mov dword [eax], 1
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov dword [ecx], 0
jmp 0x4fda48
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], ebx
mov dword [eax], 0xc0000229
jmp 0x4fd89b
cmp dword [0x100b7158], ebx
je 0x4fdb27
push 0x10078fbc
push eax
lea ecx, [esp + 0xe0]
call fcn.004bdd80
push eax
push 0x10085b54
push 0x10085d70
lea ecx, [esp + 0x74]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
lea ecx, [esp + 0xd8]
call fcn.004aabe0
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], ebx
lea ecx, [esp + 0x38]
mov dword [edx], 0xc0000229
call fcn.0050ed20
jmp 0x4fe133
cmp dword [0x100b7158], ebx
je 0x4fdb75
push 0x10085dac
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], ebx
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x70]
call fcn.0050c140
lea ecx, [esp + 0x80]
call fcn.004cbb10
lea ecx, [esp + 0x1c]
call fcn.0050ed20
lea ecx, [esp + 0x3c]
call fcn.0050ed20
lea ecx, [esp + 0x38]
call fcn.0050ed20
jmp 0x4fe133
lea ecx, [esp + 0x80]
call fcn.004f7ee0
lea ecx, [esp + 0x88]
call fcn.0050ed20
lea ecx, [esp + 0x70]
call fcn.0050c140
lea edx, [esp + 0x34]
push 4
push edx
call fcn.004c15e0
mov eax, dword [esp + 0x40]
mov esi, dword [eax]
mov ecx, dword [ebp + 0xc]
add esp, 8
mov ebx, eax
lea eax, [esp + 0x34]
push eax
push ecx
push 0x100782ec
lea ecx, [esp + 0x70]
add esi, 0x10
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x4fdca4
cmp dword [0x100b7158], 0
je 0x4fdc82
push 0x10078fbc
push esi
lea ecx, [esp + 0xe0]
call fcn.004bdd80
push eax
push 0x10085b2c
push 0x10085d70
lea ecx, [esp + 0x74]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bcd00
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
lea ecx, [esp + 0xd8]
call fcn.004aabe0
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and esi, 0xefffffff
mov dword [eax], 0
mov dword [ecx], esi
lea ecx, [esp + 0x34]
call fcn.0050ed20
jmp 0x4fdb8c
lea edx, [esp + 0x98]
push 4
push edx
call fcn.004c15e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x24]
add esp, 8
lea eax, [esp + 0x98]
push eax
push ecx
push edx
push 0x100782ec
lea ecx, [esp + 0x74]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
push eax
push esi
call fcn.0050e540
mov esi, eax
add esp, 0x14
test esi, esi
je 0x4fdd51
cmp dword [0x100b7158], 0
je 0x4fdd23
push 0x10085d40
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and esi, 0xefffffff
mov dword [eax], 0
mov dword [ecx], esi
lea ecx, [esp + 0x98]
call fcn.0050ed20
lea ecx, [esp + 0x34]
call fcn.0050ed20
jmp 0x4fdb8c
mov edx, dword [esp + 0x98]
push edx
mov ecx, edi
call fcn.004fa740
mov esi, eax
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x30], esi
call fcn.004fa3e0
mov eax, dword [ebp + 0x20]
test eax, eax
mov edx, dword [ebp + 8]
mov dword [edx], esi
je 0x4fdd8d
mov dword [eax], 1
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov dword [ecx], 0
jmp 0x4fdd37
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], ebx
mov dword [eax], 0xc0000229
jmp 0x4fdba1
cmp dword [0x100b7158], 0
je 0x4fdde7
push 0x10085dac
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
cmp dword [edi + 0x38], 1
jne 0x4fde0d
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
lea ecx, [esp + 0x44]
mov dword [edx], 0xc0000229
call fcn.0050c140
jmp 0x4fe133
mov eax, dword [ebp + 0x24]
lea ecx, [esp + 0x44]
mov dword [eax], 1
call fcn.0050c140
jmp 0x4fe133
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
lea ecx, [esp + 0x2c]
call fcn.0050ed20
lea ecx, [esp + 0x44]
call fcn.0050c140
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
mov dword [edx], esi
jmp 0x4fe133
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x6c]
lea edx, [esp + 0x44]
push edx
call eax
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.0050c2f0
lea edx, [esp + 0x34]
push 4
push edx
call fcn.004c15e0
mov esi, dword [ebp + 0xc]
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
add esp, 8
lea edx, [esp + 0x34]
push edx
lea edx, [esp + 0x74]
push edx
mov edx, dword [ebp + 0x18]
push esi
push edx
lea edx, [esp + 0xb4]
push edx
call eax
test eax, eax
je 0x4fded7
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
and eax, 0xefffffff
lea ecx, [esp + 0x34]
mov dword [edx], eax
call fcn.0050ed20
lea ecx, [esp + 0x44]
call fcn.0050ed20
jmp 0x4fe133
lea eax, [esp + 0x2c]
push 4
push eax
call fcn.004c15e0
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
lea eax, [esp + 0xb8]
push eax
push ecx
call fcn.0050e540
add esp, 0x1c
test eax, eax
je 0x4fdf3a
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
and eax, 0xefffffff
mov dword [edx], 0
mov dword [ecx], eax
lea ecx, [esp + 0x2c]
call fcn.0050ed20
lea ecx, [esp + 0x34]
call fcn.0050ed20
lea ecx, [esp + 0x44]
call fcn.0050ed20
jmp 0x4fe133
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
push edx
mov ecx, edi
call fcn.004fa740
mov esi, eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [edi + 0x14]
mov dword [esp + 0x30], esi
call fcn.004fa3e0
mov eax, dword [ebp + 0x20]
test eax, eax
mov edx, dword [ebp + 8]
mov dword [edx], esi
je 0x4fdf74
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], 0
mov dword [eax], 0
jmp 0x4fdf1a
mov ecx, dword [ebp + 0x24]
mov dword [ecx], 1
jmp 0x4fe133
mov edx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
mov dword [edx], ebx
mov dword [eax], 0xc0000034
lea ecx, [esp + 0x18]
call fcn.0050ed20
lea ecx, [esp + 0x24]
call fcn.0050ed20
lea ecx, [esp + 0x5c]
call fcn.004cbb10
jmp 0x4fe133
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
and eax, 0xefffffff
mov dword [ecx], ebx
mov dword [edx], eax
jmp 0x4fdfa4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x100b7078]
mov eax, dword [eax + 0x718]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
call eax
cmp eax, ebx
jne 0x4fdffb
mov edx, dword [ebp + 0x20]
mov dword [edx], 2
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], ebx
mov dword [edx], eax
jmp 0x4fdfa4
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
and eax, 0xefffffff
lea ecx, [esp + 0x4c]
mov dword [edx], eax
call fcn.0050ed20
jmp 0x4fdfa4
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
and eax, 0xefffffff
mov dword [ecx], 0
mov dword [edx], eax
lea ecx, [esp + 0x54]
call fcn.0050ed20
lea ecx, [esp + 0x4c]
call fcn.0050ed20
jmp 0x4fdfa4
cmp dword [0x100b7158], 0
je 0x4fe085
push 0x10085dac
push 0x10085d70
lea ecx, [esp + 0x6c]
call fcn.004bcc40
mov ecx, eax
call fcn.004bbb70
mov ecx, eax
call fcn.004bbb70
lea ecx, [esp + 0x64]
call fcn.004bba80
cmp dword [esi + 0x38], 1
jne 0x4fe0a8
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov dword [eax], 0
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x74]
call fcn.0050c140
jmp 0x4fe03b
mov edx, dword [ebp + 0x24]
lea ecx, [esp + 0x74]
mov dword [edx], 1
call fcn.0050c140
jmp 0x4fe03b
lea ecx, [esp + 0x5c]
call fcn.004f7ee0
lea ecx, [esp + 0x94]
call fcn.0050ed20
lea ecx, [esp + 0x74]
call fcn.0050c140
mov eax, dword [esp + 0x54]
push eax
mov ecx, esi
call fcn.004fa740
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x2c]
mov edi, eax
push edx
lea ecx, [esi + 0x14]
mov dword [esp + 0x30], edi
call fcn.004fa3e0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x4fe113
mov dword [eax], 1
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x28]
mov dword [ecx], 0
mov dword [edx], 0
jmp 0x4fe03b
mov eax, dword [ebp + 0x24]
mov dword [eax], 1
lea ecx, [esp + 0x10]
call fcn.0050ed20
lea ecx, [esp + 0xb0]
call fcn.004f8210
lea ecx, [esp + 0x14]
call fcn.0050ed20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24