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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
push ebx
push esi
push edi
lea eax, [esp + 0x18]
mov esi, ecx
push 4
push eax
mov dword [esp + 0x28], esi
call fcn.004c15e0
add esp, 8
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x14]
call fcn.004fa510
mov edi, dword [ebp + 0xc]
xor ebx, ebx
test eax, eax
je 0x5059ec
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x34]
call edx
test eax, eax
je 0x50552c
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [ecx], 0xc000017c
je 0x5068b7
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 0x20
lea ecx, [esp + 0x10]
push 4
push ecx
call fcn.004c15e0
add esp, 8
lea edx, [esp + 0x10]
push edx
lea eax, [ebp + 8]
mov ecx, esi
add ecx, 0x3c
push eax
call fcn.004fa510
test eax, eax
je 0x505803
mov ecx, dword [esp + 0x10]
cmp edi, dword [ecx + 8]
jbe 0x505803
lea ecx, [esp + 0x28]
call fcn.004f7130
lea ecx, [esp + 0x34]
call fcn.004f7130
mov edx, dword [esp + 0x10]
mov esi, dword [edx + 8]
xor ebx, ebx
cmp esi, edi
jae 0x5055a0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x28]
push eax
call edx
cmp eax, ebx
jne 0x505601
add esi, 1
cmp esi, edi
jb 0x505582
mov eax, dword [esp + 0x10]
mov dword [eax + 8], edi
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x5057c1
sub eax, 1
je 0x505769
sub eax, 1
je 0x5056df
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ecx], ebx
lea ecx, [esp + 0x34]
mov dword [edx], 0xc000000d
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5068a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x5068a7
cmp eax, 1
jne 0x505643
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [ecx], 0x8000001a
lea ecx, [esp + 0x34]
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5068a7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
jmp 0x5068a7
cmp dword [0x100b7158], ebx
je 0x5056a2
push 0x10078fbc
push eax
lea ecx, [esp + 0x98]
call fcn.004bdd80
push eax
push 0x10086208
push 0x10086720
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 + 0x90]
call fcn.004aabe0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [ecx], 0xc0000229
lea ecx, [esp + 0x34]
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5068a7
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x10], ebx
jmp 0x5068a7
cmp dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
je 0x5056f5
lea ecx, [esp + 0x34]
call fcn.004f6ee0
jmp 0x5056f7
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push ecx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.004f78e0
mov edx, dword [ebp + 0x24]
lea ecx, [esp + 0x34]
mov dword [edx], eax
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5068a7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
jmp 0x5068a7
cmp dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
je 0x505781
lea ecx, [esp + 0x34]
call fcn.004f6ee0
mov esi, eax
jmp 0x505783
xor esi, esi
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f77a0
jmp 0x505735
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
mov dword [eax], ebx
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004f7710
jmp 0x505735
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x50583d
cmp eax, 2
je 0x50583d
cmp eax, 1
je 0x50583d
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [ecx], 0xc000000d
lea ecx, [esp + 0x10]
call fcn.0050ed20
lea ecx, [esp + 0x18]
call fcn.0050ed20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea edx, [esp + 0x88]
push edx
call fcn.004f8180
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
je 0x505863
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esi]
cmp eax, ebx
mov dword [esp + 0x10], eax
je 0x505875
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push eax
call edx
mov eax, dword [esp + 0x88]
cmp eax, ebx
je 0x505888
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x14]
push 4
push eax
call fcn.004c15e0
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 0x3c]
add esp, 8
lea eax, [esp + 0x14]
push eax
call edx
mov esi, eax
cmp esi, ebx
je 0x50593d
cmp dword [0x100b7158], ebx
je 0x505910
push 0x10078fbc
push esi
lea ecx, [esp + 0x98]
call fcn.004bdd80
push eax
push 0x10086084
push 0x10086720
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 + 0x90]
call fcn.004aabe0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
and esi, 0xefffffff
mov dword [eax], ebx
mov dword [ecx], esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5055e4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
jmp 0x5055e4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
add ecx, 0xc
call fcn.004f8030
lea ecx, [esp + 0x28]
call fcn.004f7130
lea ecx, [esp + 0x34]
call fcn.004f7130
xor esi, esi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x28]
push eax
call edx
cmp eax, ebx
jne 0x505e17
add esi, 1
cmp esi, edi
jbe 0x505962
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 8]
push edx
lea ecx, [esi + 0x3c]
mov dword [eax + 8], edi
call fcn.004fa3e0
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x505f93
sub eax, 1
je 0x505f3b
sub eax, 1
je 0x505eb3
lea ecx, [esp + 0x34]
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5059dc
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x5059ec
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x28]
call fcn.0050bf30
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x40
push 0x100782ec
lea ecx, [esp + 0xc4]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.004f6f10
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [esp + 0x28]
push eax
call fcn.004fcad0
test eax, eax
je 0x506326
lea ecx, [esp + 0x28]
call fcn.004f3bc0
mov ecx, eax
call fcn.0050c2e0
test eax, eax
jne 0x506366
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x2c]
call fcn.0050c0f0
lea eax, [esp + 0x10]
push 4
push eax
call fcn.004c15e0
mov esi, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebp + 8]
add esi, 0x60
push edx
mov ecx, esi
call fcn.004fa510
test eax, eax
jne 0x5061f9
mov ecx, dword [ebp + 8]
lea eax, [esp + 0xc8]
push eax
push ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call fcn.004fea70
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
push 0x30
mov esi, eax
call fcn.004a8640
add esp, 4
cmp eax, ebx
je 0x505fd3
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0xc8]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0xcc]
mov dword [eax + 4], ebx
mov dword [eax], 0x10085318
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], esi
mov dword [eax + 0x20], ebx
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], ecx
mov edx, dword [eax]
mov esi, eax
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x505b28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp esi, ebx
mov dword [esp + 0x10], esi
je 0x505b40
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push esi
call ecx
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
lea ecx, [esp + 0x24]
push 4
push ecx
call fcn.004c15e0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x5c]
add esp, 8
lea eax, [esp + 0x24]
push eax
call edx
mov esi, eax
cmp esi, ebx
jne 0x506374
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
lea ecx, [esp + 0x80]
call fcn.004f7130
lea eax, [esp + 0x1c]
push 4
push eax
call fcn.004c15e0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 8
lea eax, [esp + 0xdc]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x88]
push eax
call edx
mov esi, eax
cmp esi, ebx
jne 0x50604b
cmp dword [esp + 0xdc], ebx
jne 0x505fda
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
test eax, eax
jne 0x505be1
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x28]
call edx
test eax, eax
je 0x505bf5
lea eax, [esp + 0x80]
mov ecx, eax
push eax
push ecx
lea ecx, [esp + 0x6c]
call fcn.004f8540
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
test eax, eax
je 0x505df2
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
test eax, eax
jne 0x505df2
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x6c]
lea eax, [esp + 0x74]
push eax
call edx
lea eax, [esp + 0x70]
push 4
push eax
call fcn.004c15e0
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
add esp, 8
lea ecx, [esp + 0x70]
push ecx
push 0x20019
push 0x100782ec
lea ecx, [esp + 0x9c]
mov edi, eax
add esi, 0x10
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov esi, eax
cmp esi, ebx
jne 0x506419
lea ecx, [esp + 0xe0]
call fcn.004f7130
lea ecx, [esp + 0xec]
call fcn.004f7130
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
lea edx, [esp + 0xe0]
push edx
call eax
mov esi, eax
cmp esi, ebx
jne 0x5064c3
lea ecx, [esp + 0x80]
push ecx
lea ecx, [esp + 0xe4]
call fcn.004f7230
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
mov dword [esp + 0xe8], eax
je 0x505d03
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0xd4]
push eax
call edx
push eax
lea ecx, [esp + 0xf0]
call fcn.004f7230
lea ecx, [esp + 0xd4]
call fcn.004f7250
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], ecx
lea esi, [eax + 0x14]
mov edi, eax
jne 0x505d23
add ecx, 0x100
push ecx
lea ecx, [eax + 0xc]
call fcn.004f82a0
mov eax, dword [esi]
lea ecx, [eax + 1]
lea edx, [eax*8]
mov dword [esi], ecx
sub edx, eax
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0xe0]
lea esi, [eax + edx*8]
push ecx
mov ecx, esi
call fcn.004f7230
mov edx, dword [esp + 0xe8]
lea eax, [esp + 0xec]
push eax
lea ecx, [esi + 0xc]
mov dword [esi + 8], edx
call fcn.004f7230
mov ecx, dword [esp + 0xf8]
mov dword [esi + 0x18], ecx
mov edx, dword [esp + 0xfc]
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x100]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x104]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x108]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x10c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x110]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x114]
lea ecx, [esp + 0xec]
mov dword [esi + 0x34], edx
call fcn.004f7250
lea ecx, [esp + 0xe0]
call fcn.004f7250
mov eax, dword [esp + 0x70]
cmp eax, ebx
je 0x505dde
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x70], ebx
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x505df2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x74], ebx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x505e06
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x80]
call fcn.004f7250
jmp 0x505b71
cmp eax, 1
jne 0x505e41
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [ecx], 0x8000001a
lea ecx, [esp + 0x34]
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
jmp 0x505920
cmp dword [0x100b7158], ebx
je 0x505ea0
push 0x10078fbc
push eax
lea ecx, [esp + 0x98]
call fcn.004bdd80
push eax
push 0x10086084
push 0x10086720
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 + 0x90]
call fcn.004aabe0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [ecx], 0xc0000229
jmp 0x505e2a
cmp dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
je 0x505ec9
lea ecx, [esp + 0x34]
call fcn.004f6ee0
jmp 0x505ecb
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push ecx
push eax
mov ecx, esi
call fcn.004f78e0
mov edx, dword [ebp + 0x24]
lea ecx, [esp + 0x34]
mov dword [edx], eax
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5055e4
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
jmp 0x5055e4
cmp dword [esp + 0x30], ebx
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
je 0x505f53
lea ecx, [esp + 0x34]
call fcn.004f6ee0
mov esi, eax
jmp 0x505f55
xor esi, esi
lea ecx, [esp + 0xa0]
push ecx
lea ecx, [esp + 0x2c]
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
push esi
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f77a0
jmp 0x505f07
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x2c]
mov dword [eax], ebx
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x48]
push ecx
push edx
push eax
lea ecx, [esp + 0xbc]
push ecx
mov ecx, esi
call fcn.004f7710
jmp 0x505f07
xor esi, esi
jmp 0x505b18
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x505fee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x80]
call fcn.004f7250
lea ecx, [esp + 0x64]
call fcn.004f8640
lea ecx, [esp + 0x64]
call fcn.004f8640
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x506026
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x506014
mov eax, dword [esp + 0x24]
cmp eax, ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebx
je 0x505a94
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x24], ebx
jmp 0x505a94
cmp esi, 1
jne 0x50664a
lea ecx, [esp + 0x1c]
call fcn.0050ed20
lea ecx, [esp + 0x80]
call fcn.004f7250
mov edi, 4
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], ebx
cmp dword [esp + 0x7c], edi
jae 0x5060ae
mov eax, dword [esp + 0x78]
push eax
call fcn.004c17d0
add esp, 4
cmp edi, ebx
jne 0x5060a1
mov dword [esp + 0x78], ebx
jmp 0x5060ae
push edi
call fcn.004c1680
add esp, 4
mov dword [esp + 0x78], eax
mov ecx, dword [0x100b7078]
mov eax, dword [ecx + 0x628]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x11c]
push edx
mov edx, dword [esp + 0x90]
push edi
push ecx
mov ecx, dword [ebp + 8]
push ebx
push edx
push ecx
mov dword [esp + 0x94], edi
call eax
mov esi, eax
cmp esi, ebx
je 0x506100
cmp esi, 0xc0000023
je 0x5060f8
cmp esi, 0x80000005
jne 0x50619f
add edi, 0x100
jmp 0x506084
mov eax, dword [esp + 0x78]
mov edx, dword [eax + 0xc]
shr edx, 1
push edx
add eax, 0x10
push eax
lea ecx, [esp + 0xa8]
call fcn.004f7140
lea ecx, [esp + 0xa8]
call fcn.004f7130
lea eax, [esp + 0xa8]
push eax
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004f8070
lea ecx, [esp + 0xa8]
mov esi, eax
call fcn.004f7250
cmp esi, ebx
jne 0x506191
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
cmp dword [eax + 0x20], ecx
lea esi, [eax + 0x20]
mov dword [esp + 0xd0], eax
jne 0x506176
add ecx, 0x100
push ecx
lea ecx, [eax + 0x18]
call fcn.004f7e80
mov eax, dword [esi]
mov ecx, dword [esp + 0xd0]
lea edx, [eax + 1]
mov dword [esi], edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x8c]
mov dword [edx + eax*4], ecx
lea ecx, [esp + 0xa0]
call fcn.004f7250
jmp 0x5061b2
cmp esi, 0x8000001a
jne 0x506555
mov dword [esp + 0x88], ebx
add dword [esp + 0x8c], 1
cmp dword [esp + 0x88], ebx
jne 0x506084
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
lea eax, [ebp + 8]
add esi, 0x60
push eax
mov ecx, esi
call fcn.004fa3e0
lea ecx, [esp + 0x78]
call fcn.004aa300
lea ecx, [esp + 0x64]
call fcn.004f93f0
lea ecx, [esp + 0x24]
call fcn.0050ed20
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
mov edi, dword [esp + 0x10]
call eax
cmp eax, dword [edi + 0x24]
jle 0x50622a
lea ecx, [ebp + 8]
push ecx
mov ecx, esi
call fcn.004e7040
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x50628d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x506289
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xc0]
push eax
push edi
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
call fcn.004fea70
test eax, eax
mov ecx, dword [esp + 0x10]
je 0x5066c4
mov edx, dword [esp + 0xc0]
cmp edx, dword [ecx + 0x28]
mov esi, dword [esp + 0xc4]
lea eax, [ecx + 0x28]
jne 0x506278
cmp esi, dword [eax + 4]
je 0x5066c4
mov dword [eax], edx
mov dword [eax + 4], esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x5062a1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x5062b5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x5062c9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x28]
call fcn.004f7250
lea ecx, [esp + 0x28]
call fcn.0050bf30
push ebx
lea eax, [esp + 0x2c]
push eax
push ebx
push 0x40
push 0x100782ec
lea ecx, [esp + 0xc4]
call fcn.004f6f60
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [ebp + 8]
push eax
push ecx
lea ecx, [esp + 0x138]
call fcn.004f6f10
mov ecx, eax
call fcn.004f6ee0
mov ecx, dword [esp + 0x28]
push eax
call fcn.004fcad0
test eax, eax
jne 0x505a40
cmp dword [0x100b7158], ebx
je 0x506358
push 0x10085dac
push 0x10086720
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 edx, dword [ebp + 0x20]
mov dword [edx], 1
jmp 0x506876
mov eax, dword [ebp + 0x20]
mov dword [eax], 1
jmp 0x506876
cmp dword [0x100b7158], ebx
je 0x5063d3
push 0x10078fbc
push esi
lea ecx, [esp + 0x98]
call fcn.004bdd80
push eax
push 0x100866f8
push 0x10086720
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 + 0x90]
call fcn.004aabe0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
and esi, 0xefffffff
mov dword [eax], ebx
mov dword [ecx], esi
lea ecx, [esp + 0x24]
call fcn.0050ed20
lea ecx, [esp + 0x10]
call fcn.0050ed20
lea ecx, [esp + 0x14]
call fcn.0050ed20
lea ecx, [esp + 0x28]
call fcn.004f8210
lea ecx, [esp + 0x18]
call fcn.0050ed20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
cmp dword [0x100b7158], ebx
je 0x50647e
push 0x10078fbc
push esi
lea ecx, [esp + 0xb8]
call fcn.004bdd80
push eax
push 0x100866c4
push 0x10086720
lea ecx, [esp + 0xa0]
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 + 0x90]
call fcn.004bba80
lea ecx, [esp + 0xb0]
call fcn.004aabe0
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
and esi, 0xefffffff
mov dword [edx], ebx
mov dword [eax], esi
lea ecx, [esp + 0x70]
call fcn.0050ed20
lea ecx, [esp + 0x74]
call fcn.0050ed20
lea ecx, [esp + 0x1c]
call fcn.0050ed20
lea ecx, [esp + 0x80]
call fcn.004f7250
lea ecx, [esp + 0x64]
call fcn.004f93f0
jmp 0x5063e3
cmp dword [0x100b7158], ebx
je 0x506528
push 0x10078fbc
push esi
lea ecx, [esp + 0xb8]
call fcn.004bdd80
push eax
push 0x1008668c
push 0x10086720
lea ecx, [esp + 0xa0]
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 + 0x90]
call fcn.004bba80
lea ecx, [esp + 0xb0]
call fcn.004aabe0
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [ecx], ebx
and esi, 0xefffffff
lea ecx, [esp + 0xec]
mov dword [edx], esi
call fcn.004f7250
lea ecx, [esp + 0xe0]
call fcn.004f7250
jmp 0x50648e
cmp dword [0x100b7158], ebx
je 0x5065c2
push 0x10078fbc
push esi
lea ecx, [esp + 0xb8]
call fcn.004bcd40
push eax
push 0x10086640
push 0x10086720
lea ecx, [esp + 0xa0]
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 + 0x90]
call fcn.004bba80
mov eax, dword [esp + 0xb4]
cmp eax, ebx
je 0x5065c2
push eax
call fcn.004c17d0
add esp, 4
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov dword [eax], ebx
mov eax, dword [esp + 0x78]
cmp eax, ebx
mov dword [ecx], esi
je 0x5065dd
push eax
call fcn.004c17d0
add esp, 4
lea ecx, [esp + 0x64]
call fcn.004f8640
lea ecx, [esp + 0x64]
call fcn.004f8640
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x506609
mov esi, dword [eax + 4]
push eax
call fcn.004a8630
add esp, 4
cmp esi, ebx
mov eax, esi
jne 0x5065f7
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x50661d
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x506631
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x506876
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x506872
cmp dword [0x100b7158], ebx
je 0x5066af
push 0x10078fbc
push esi
lea ecx, [esp + 0xb8]
call fcn.004bdd80
push eax
push 0x1008613c
push 0x10086720
lea ecx, [esp + 0xa0]
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 + 0x90]
call fcn.004bba80
lea ecx, [esp + 0xb0]
call fcn.004aabe0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
and esi, 0xefffffff
mov dword [eax], ebx
mov dword [ecx], esi
jmp 0x5064a0
mov eax, dword [ecx + 0x14]
mov edx, dword [ebp + 0xc]
cmp edx, eax
jae 0x5067f4
lea eax, [edx*8]
sub eax, edx
mov edx, dword [ecx + 0xc]
lea esi, [edx + eax*8]
mov eax, dword [ebp + 0x10]
sub eax, ebx
je 0x5067b1
sub eax, 1
je 0x50675a
sub eax, 1
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
je 0x506709
mov edx, dword [ebp + 0x24]
mov dword [edx], 0xc000000d
jmp 0x506856
cmp dword [esi + 8], ebx
je 0x506718
lea ecx, [esi + 0xc]
call fcn.004f6ee0
jmp 0x50671a
xor eax, eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x34]
push ecx
mov ecx, dword [esi + 0x30]
push edx
mov edx, dword [esi + 0x2c]
push ecx
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
push ecx
mov ecx, dword [esi + 0x18]
push edx
push ecx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.004f78e0
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
jmp 0x50661d
mov eax, dword [ebp + 0x20]
mov dword [eax], ebx
cmp dword [esi + 8], ebx
je 0x506770
lea ecx, [esi + 0xc]
call fcn.004f6ee0
mov edi, eax
jmp 0x506772
xor edi, edi
lea ecx, [esp + 0xb0]
push ecx
mov ecx, esi
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x3c]
call fcn.004f77a0
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
jmp 0x50661d
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0xd4]
push ecx
mov ecx, esi
mov dword [eax], ebx
call fcn.004f6ec0
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 0x1c]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
lea ecx, [esp + 0xe8]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.004f7710
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
jmp 0x50661d
sub edx, eax
mov eax, edx
cmp eax, dword [ecx + 0x20]
jae 0x506848
mov edx, dword [ebp + 0x20]
mov dword [edx], ebx
mov ecx, dword [ecx + 0x18]
mov edx, dword [0x100b7078]
lea eax, [ecx + eax*4]
mov ecx, dword [edx + 0x628]
mov edx, dword [ebp + 0x1c]
mov eax, dword [eax]
push edx
mov edx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push edx
push eax
push edi
call ecx
mov ecx, dword [ebp + 0x24]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x506631
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x50662d
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [eax], ebx
mov dword [edx], 0x8000001a
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x506876
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x40]
cmp eax, ebx
je 0x50688a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x50689e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x28]
call fcn.004f7250
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x5068b7
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 0x20