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

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6a40f0
call fcn.00640244
sub esp, 0x148
push ebx
xor edx, edx
mov ebx, ecx
push esi
push edi
mov dword [ebp + 0x4c], ebx
cmp byte [ebp + 0x70], dl
je 0x4ae02f
push dword [ebp + 0x78]
lea ecx, [ebx + 0x20]
push dword [ebp + 0x74]
mov eax, dword [ecx]
push edx
push ebx
call dword [eax]
xor edi, edi
mov esi, edi
cmp dword [ebx + 0x1d4], esi
jbe 0x4adf5e
push esi
lea ecx, [ebx + 0x1c4]
call fcn.00424036
push dword [ebx + 0x67c]
mov ecx, dword [eax]
call fcn.004e902e
inc esi
cmp esi, dword [ebx + 0x1d4]
jb 0x4adf3a
xor edi, edi
mov esi, dword [0x7b043c]
cmp esi, dword [ebx + 0x750]
jl 0x4adfa5
jg 0x4adf7c
mov ecx, dword [0x7b0438]
cmp ecx, dword [ebx + 0x74c]
jb 0x4adfab
mov ecx, ebx
call fcn.004a4e9f
mov ecx, dword [0x7b0438]
mov eax, dword [0x7b043c]
add ecx, 0xa
mov dword [ebx + 0x74c], ecx
adc eax, edi
mov dword [ebx + 0x750], eax
mov esi, dword [0x7b043c]
mov ecx, dword [0x7b0438]
mov edx, dword [ebx + 0xc0]
mov eax, dword [ebx + 0xc4]
add edx, 0xa8c0
adc eax, edi
cmp esi, eax
jl 0x4adfdc
jg 0x4adfc9
cmp ecx, edx
jb 0x4adfdc
mov ecx, ebx
call fcn.004b88cb
mov esi, dword [0x7b043c]
mov ecx, dword [0x7b0438]
mov edx, dword [0x7ac658]
test edx, edx
je 0x4adffe
xor eax, eax
add edx, dword [ebx + 0x51c]
adc eax, dword [ebx + 0x520]
cmp esi, eax
jg 0x4ae025
jl 0x4adffe
cmp ecx, edx
jae 0x4ae025
mov eax, dword [ebx + 0x500]
test eax, eax
jg 0x4ae00b
push 0x3c
pop eax
imul eax, eax, 0x3c
cdq
add eax, dword [ebx + 0x51c]
adc edx, dword [ebx + 0x520]
cmp esi, edx
jl 0x4ae02d
jg 0x4ae025
cmp ecx, eax
jb 0x4ae02d
push edi
mov ecx, ebx
call fcn.004a1537
xor edx, edx
mov al, byte [ebx + 0x5f4]
test al, al
je 0x4ae054
sub al, 1
mov byte [ebx + 0x5f4], al
jne 0x4ae054
test byte [ebx + 0x138], 1
je 0x4ae054
push edx
mov ecx, ebx
call fcn.004ba904
call fcn.0048f87d
mov esi, eax
mov al, byte [ebp + 0x70]
test al, al
je 0x4ae14c
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x168]
test al, al
je 0x4ae149
test esi, esi
jle 0x4ae149
mov eax, dword [ebx + 0x1e0]
xor edi, edi
sub eax, dword [ebx + 0x1dc]
mov ecx, edi
push 4
pop edx
cmp eax, edx
jb 0x4ae0e6
mov eax, dword [ebx + 0x1dc]
mov edx, ecx
shl edx, 2
mov eax, dword [edx + eax]
test byte [eax + 0x62], 1
jne 0x4ae0ba
mov eax, dword [ebx + 0x1dc]
mov eax, dword [edx + eax]
test byte [eax + 0x62], 0x10
jne 0x4ae0d0
mov eax, dword [ebx + 0x1e0]
inc ecx
sub eax, dword [ebx + 0x1dc]
sar eax, 2
cmp ecx, eax
jne 0x4ae097
jmp 0x4ae0e3
mov eax, dword [ebx + 0x1dc]
mov ecx, ebx
push 3
add eax, edx
push eax
call fcn.004a33a2
dec esi
push 4
pop edx
test esi, esi
jle 0x4ae149
test byte [ebx + 0x138], 0x40
jne 0x4ae0fc
cmp byte [0x789aa5], 0
je 0x4ae149
mov eax, dword [ebx + 0x1e0]
sub eax, dword [ebx + 0x1dc]
cmp eax, edx
jb 0x4ae149
mov edx, dword [0x789af4]
test edx, edx
je 0x4ae149
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [ebx + 0x288]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp dword [eax + 0x74], edi
jg 0x4ae142
push edx
add eax, 0x38
push eax
call fcn.004a4c5e
test al, al
je 0x4ae142
push esi
mov ecx, ebx
call fcn.004a45b5
mov ecx, ebx
call fcn.004b42c2
mov al, byte [ebp + 0x70]
test byte [ebx + 0x138], 1
jne 0x4ae1a8
test al, al
je 0x4af08e
movzx eax, byte [ebx + 0x2f9]
xor ecx, ecx
mov dword [ebx + 0x4a0], ecx
mov dword [ebx + 0x4a4], ecx
mov dword [ebx + 0x4a8], ecx
mov byte [ebx + 0x2f9], cl
test eax, eax
je 0x4ae18f
push ecx
push 0x10000
mov ecx, ebx
call fcn.004a4015
test byte [ebx + 0x143], 0xc
jne 0x4af08e
mov ecx, ebx
call fcn.004a0157
jmp 0x4af08e
mov al, byte [ebx + 0x144]
test al, 8
jne 0x4ae2c2
or al, 8
lea ecx, [ebp + 0x18]
mov byte [ebx + 0x144], al
lea eax, [ebx + 0x1e8]
push eax
call fcn.0049bda8
xor edx, edx
lea ecx, [ebx + 0x198]
mov eax, dword [ecx + 0x10]
mov edi, edx
mov dword [ebp - 4], edx
mov dword [ebp + 0x60], eax
test eax, eax
je 0x4ae27d
push edi
call fcn.00424036
mov ecx, eax
call fcn.0048cc18
mov esi, eax
mov dword [ebp + 0x58], esi
mov al, byte [esi + 0x89]
and al, 1
je 0x4ae20a
mov ecx, dword [esi]
xor esi, esi
jmp 0x4ae20e
xor esi, esi
mov ecx, esi
test al, al
je 0x4ae269
cmp dword [ebp + 0x28], 0
je 0x4ae23b
lea eax, [ecx + 0x78]
mov dword [ebp + 0x64], eax
push esi
lea ecx, [ebp + 0x18]
call fcn.004f038d
push dword [ebp + 0x64]
mov ecx, eax
call fcn.0040ff04
test eax, eax
je 0x4ae25a
inc esi
cmp esi, dword [ebp + 0x28]
jne 0x4ae21e
mov esi, dword [ebp + 0x58]
xor eax, eax
push eax
mov ecx, esi
call fcn.004e6778
push esi
mov ecx, ebx
call fcn.004b3dbd
mov eax, dword [ebp + 0x60]
dec eax
dec edi
mov dword [ebp + 0x60], eax
jmp 0x4ae26c
cmp esi, 0xffffffff
je 0x4ae23b
push esi
lea eax, [ebp + 0x18]
push eax
call fcn.00496851
mov eax, dword [ebp + 0x60]
inc edi
lea ecx, [ebx + 0x198]
cmp edi, eax
jb 0x4ae1e8
xor edx, edx
cmp dword [ebp + 0x28], 0
mov esi, edx
jbe 0x4ae2aa
push esi
lea ecx, [ebp + 0x18]
call fcn.004f038d
cmp dword [eax + 0x14], 0x10
jb 0x4ae296
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 1
push ecx
push eax
mov ecx, ebx
call fcn.004ba6a7
inc esi
cmp esi, dword [ebp + 0x28]
jb 0x4ae285
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.00468117
push 8
push 1
push dword [ebp + 0x18]
call fcn.004280ef
mov al, byte [ebx + 0x144]
push 4
pop ecx
test cl, al
jne 0x4ae2de
or al, cl
mov ecx, ebx
mov byte [ebx + 0x144], al
call fcn.004b730c
cmp byte [ebp + 0x70], 0
je 0x4ae303
mov ecx, dword [ebx + 0xcc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
test al, al
je 0x4ae303
mov ecx, dword [ebx + 0xcc]
push 1
mov eax, dword [ecx]
call dword [eax + 0xbc]
push 4
pop eax
test byte [ebx + 0x14c], al
je 0x4ae871
mov eax, dword [ebx + 0x740]
xor edx, edx
mov ecx, dword [ebx + 0x73c]
cmp eax, edx
ja 0x4ae32c
cmp ecx, edx
jbe 0x4ae871
add ecx, 0x3fff
adc eax, edx
shrd ecx, eax, 0xe
shr eax, 0xe
cmp dword [ebx + 0xf0], ecx
jne 0x4ae871
cmp edx, eax
jne 0x4ae871
push dword [ebx + 0xe0]
call fcn.004a1522
test al, al
je 0x4ae871
mov esi, dword [ebx + 0xe0]
test esi, esi
je 0x4ae380
mov ecx, esi
call fcn.005055a5
push 0x180
push esi
call fcn.00640264
pop ecx
pop ecx
sub esp, 0x18
xor eax, eax
mov ecx, ebx
mov dword [ebx + 0xe0], eax
push esp
call fcn.004a8484
mov ecx, ebx
call fcn.004b7074
push 7
pop edx
xor ecx, ecx
mov dword [ebp + 0x40], edx
xor eax, eax
mov dword [ebp + 0x3c], ecx
mov word [ebp + 0x2c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x3c], ax
mov byte [ebp - 4], 2
cmp dword [ebx + 0x714], ecx
je 0x4ae420
lea eax, [ebx + 0x704]
cmp dword [eax + 0x14], 0x10
jb 0x4ae3d6
mov eax, dword [eax]
push 0x6cd554
push eax
call fcn.0047db9b
test al, al
je 0x4ae420
mov eax, dword [ebx + 0xd8]
xor edx, edx
cmp dword [eax + 0x38], edx
je 0x4ae420
add eax, 0x28
lea ecx, [ebp + 0x2c]
cmp ecx, eax
je 0x4ae407
push 0xffffffffffffffff
push edx
push eax
call fcn.0042835e
xor edx, edx
mov eax, dword [ebx + 0xd8]
lea ecx, [ebp - 0x3c]
add eax, 0x40
cmp ecx, eax
je 0x4ae420
push 0xffffffffffffffff
push edx
push eax
call fcn.0042835e
mov ecx, dword [ebx + 0xd8]
call fcn.004a18af
lea eax, [ebx + 0x528]
cmp dword [eax + 0x14], 8
jb 0x4ae439
mov eax, dword [eax]
test eax, eax
je 0x4ae44c
mov eax, dword [0x7b16c4]
test eax, eax
jle 0x4ae44c
dec eax
mov dword [0x7b16c4], eax
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push eax
call fcn.004acee8
test al, al
je 0x4ae76f
test dword [0x7b0cac], 0x4000000
je 0x4ae49e
mov ecx, dword [0x7b0438]
sub ecx, dword [ebx + 0x33c]
mov eax, dword [0x7b043c]
sbb eax, dword [ebx + 0x340]
push eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x130]
push eax
push str.Finished_receiving_metadata_for__s_in__d_seconds
call fcn.0047cc80
add esp, 0x10
call fcn.0048d06d
push eax
call fcn.0048d073
push eax
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.004a7339
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.004a8484
cmp dword [ebp + 0x14], 8
mov ecx, dword [ebp]
push 4
pop eax
mov byte [ebp - 4], al
jae 0x4ae4d9
lea ecx, [ebp]
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x4ae4eb
lea eax, [ebp - 0x84]
push ecx
push eax
call fcn.00461515
test eax, eax
jne 0x4ae535
cmp dword [ebp + 0x14], 8
mov eax, dword [ebp]
jae 0x4ae502
lea eax, [ebp]
push eax
call fcn.00461e6d
test al, al
je 0x4ae54a
cmp dword [ebp + 0x14], 8
mov ecx, dword [ebp]
jae 0x4ae518
lea ecx, [ebp]
cmp dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x84]
jae 0x4ae52a
lea eax, [ebp - 0x84]
push ecx
push eax
call fcn.00461515
test eax, eax
je 0x4ae54a
sub esp, 0x18
lea eax, [ebp]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, ebx
call fcn.004b7074
cmp dword [ebp + 0x3c], 0
jne 0x4ae586
lea eax, [ebp - 0xdc]
push eax
call fcn.0046deec
push eax
lea ecx, [ebp + 0x2c]
call fcn.00427c6d
xor esi, esi
lea ecx, [ebp - 0xdc]
push esi
push 1
call fcn.004281f2
push 0xffffffffffffffff
push esi
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042835e
jmp 0x4ae588
xor esi, esi
sub esp, 0x18
lea eax, [ebp + 0x2c]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, dword [ebx + 0xd8]
call fcn.005079b4
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, dword [ebx + 0xd8]
call fcn.005078e5
test al, al
jne 0x4ae624
mov byte [ebp + 0x5f], 1
call fcn.00478821
cmp dword [ebp + 0x40], 8
mov eax, dword [ebp + 0x2c]
mov byte [ebp - 4], 5
jae 0x4ae5d7
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.004d49bb
push eax
lea ecx, [ebp - 0x3c]
call fcn.00427c6d
push esi
push 1
lea ecx, [ebp - 0xf4]
call fcn.004281f2
xor eax, eax
mov byte [ebp + 0x5f], al
call fcn.00478862
sub esp, 0x18
lea eax, [ebp - 0x3c]
mov ecx, esp
push eax
call fcn.00427b8e
mov ecx, dword [ebx + 0xd8]
call fcn.005078e5
push 4
pop eax
mov byte [ebp - 4], al
xor eax, eax
mov ecx, ebx
push eax
push 0x1000
call fcn.004a4015
or byte [ebx + 0x14c], 8
mov ecx, ebx
call fcn.004a56a4
mov eax, dword [ebx + 0x234]
mov dword [ebx + 0x238], eax
mov esi, dword [ebx + 0x244]
mov edi, esi
jmp 0x4ae65f
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esi]
cmp esi, edi
jne 0x4ae657
xor eax, eax
mov ecx, ebx
push eax
push 0x201
call fcn.004a4015
lea eax, [ebx + 0x1c4]
push eax
lea ecx, [ebp - 0x50]
call fcn.00608d16
xor eax, eax
mov byte [ebp - 4], 7
mov esi, eax
cmp dword [ebp - 0x40], eax
jbe 0x4ae6a6
push esi
lea ecx, [ebp - 0x50]
call fcn.00424036
mov ecx, dword [eax]
call fcn.004ec349
inc esi
cmp esi, dword [ebp - 0x40]
jb 0x4ae690
lea ecx, [ebp - 0x50]
call fcn.00470ce1
mov eax, dword [ebx]
mov ecx, ebx
push 0xffffffffffffffff
push 0
call dword [eax + 0x50]
cmp byte [ebx + 0x150], 3
jne 0x4ae6cb
mov ecx, ebx
call fcn.004b7367
jmp 0x4ae70b
cmp byte [0x7ac7f4], 0
je 0x4ae70b
mov ecx, ebx
call fcn.004aa41b
push ebx
call fcn.0048f45c
mov ax, word [ebx + 0x138]
mov ecx, 0xfffe
and ax, cx
push 4
pop ecx
or ax, cx
mov ecx, ebx
movzx eax, ax
push eax
call fcn.004b6fa6
xor eax, eax
mov ecx, ebx
push eax
call fcn.004b3160
lea eax, [ebx + 0x4b4]
cmp dword [eax + 0x14], 0x10
jb 0x4ae719
mov eax, dword [eax]
lea ecx, [ebx + 0x528]
cmp dword [ecx + 0x14], 8
jb 0x4ae727
mov ecx, dword [ecx]
push eax
push 3
xor eax, eax
push eax
mov eax, dword [ebx]
push str.Metadata_Complete
push ecx
mov ecx, ebx
call dword [eax + 0x34]
push eax
call fcn.004d406c
lea ecx, [ebp - 0x50]
call fcn.00470ce1
push 8
push 1
push dword [ebp - 0x50]
call fcn.004280ef
xor eax, eax
lea ecx, [ebp - 0x84]
push eax
push 1
mov dword [ebp - 0x50], eax
call fcn.004281f2
lea ecx, [ebp]
jmp 0x4ae849
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], eax
mov word [ebp - 0x24], ax
mov ecx, ebx
mov byte [ebp - 4], 8
call fcn.004aa11a
test al, al
je 0x4ae885
lea eax, [ebp - 0x10c]
mov ecx, ebx
push eax
call fcn.004a6d43
push eax
lea ecx, [ebp - 0x24]
call fcn.00427c6d
xor eax, eax
lea ecx, [ebp - 0x10c]
push eax
push 1
call fcn.004281f2
xor esi, esi
test dword [0x7b0cac], 0x20000
je 0x4ae7ec
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x4ae7d3
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
push eax
push str.ERROR:_Metadata_for__s_could_not_be_loaded_____s__
call fcn.0047cc80
add esp, 0xc
test byte [ebx + 0x14c], 0x10
je 0x4ae829
mov eax, dword [ebx + 0x234]
cmp dword [eax + 4], esi
je 0x4ae829
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x130]
push eax
push str.BAN_peer:_Responsible_for__s_metadata_not_being_loaded_
call fcn.0047cc80
pop ecx
pop ecx
xor eax, eax
push eax
push eax
mov eax, dword [ebx + 0x234]
push dword [eax + 4]
call fcn.004a01f1
mov ecx, ebx
call fcn.004a56a4
push 1
lea ecx, [ebx + 0x234]
call fcn.004bc501
push 1
mov ecx, ebx
call fcn.004a297a
lea ecx, [ebp - 0x24]
xor eax, eax
push eax
push 1
call fcn.004281f2
xor eax, eax
lea ecx, [ebp - 0x3c]
push eax
push 1
call fcn.004281f2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x2c]
xor eax, eax
push eax
push 1
call fcn.004281f2
cmp byte [ebp + 0x70], 0
je 0x4aebf0
or dword [ebp + 0x44], 0xffffffff
or dword [ebp + 0x48], 0xffffffff
jmp 0x4ae8bf
lea eax, [ebx + 0x6ec]
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x4ae7b9
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
call fcn.0042835e
jmp 0x4ae7bb
mov eax, dword [esi + 0x14]
add eax, 0x2d
cdq
cmp dword [0x7b043c], edx
jg 0x4ae8d6
jl 0x4ae8bf
cmp dword [0x7b0438], eax
ja 0x4ae8d6
lea eax, [ebp + 0x44]
push eax
push dword [ebx + 0x1d8]
call fcn.0050096c
mov esi, eax
test esi, esi
jne 0x4ae8a6
jmp 0x4ae919
test byte [0x7b0cac], 0x40
je 0x4ae8ec
push esi
push str.Timing_out_hole_punch_request__A_
call fcn.0047cc80
pop ecx
pop ecx
mov edx, dword [esi + 0x18]
push esi
mov ecx, dword [edx + 0x7b]
mov eax, ecx
and eax, 0xf0000000
not ecx
dec eax
and ecx, 0xfffffff
xor eax, ecx
mov dword [edx + 0x7b], eax
push dword [ebx + 0x1d8]
call fcn.005008cc
inc dword [0x7b16a0]
cmp byte [ebx + 0x142], 0
je 0x4ae947
call fcn.0046cb23
movzx ecx, byte [ebx + 0x142]
xor edx, edx
shr ecx, 1
inc ecx
div ecx
push 0
shl edx, 0xf
add dword [ebx + 0x28c], edx
pop eax
adc dword [ebx + 0x290], eax
test byte [ebx + 0x138], 0x20
jne 0x4aeaec
cmp byte [0x7899cc], 0
mov cl, byte [0x7899cd]
je 0x4ae9c8
mov eax, dword [ebx + 0xe4]
cmp eax, 0x80000
ja 0x4ae974
mov cl, 0xa
jmp 0x4ae9c8
mov dword [ebp + 0x54], eax
fild dword [ebp + 0x54]
test eax, eax
jns 0x4ae984
fadd dword [0x6d20a8]
fstp dword [ebp + 0x58]
fld dword [ebp + 0x58]
fdiv qword [0x6d7f50]
push ecx
push ecx
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
fstp qword [esp]
call fcn.006704a0
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
fstp dword [ebp + 0x64]
fld dword [ebp + 0x64]
pop ecx
pop ecx
call fcn.00640b60
mov ecx, eax
mov eax, 0xff
cmp ecx, eax
jbe 0x4ae9c0
mov ecx, eax
cmp ecx, 0xa
jae 0x4ae9c8
push 0xa
pop ecx
inc byte [ebx + 0x134]
cmp byte [ebx + 0x134], cl
jb 0x4ae9e8
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
mov byte [ebx + 0x134], al
call fcn.004a2283
inc byte [ebx + 0x136]
cmp byte [ebx + 0x136], 0xa
jb 0x4aea1a
xor eax, eax
test byte [ebx + 0x143], 0x20
mov byte [ebx + 0x136], al
jne 0x4aea1a
mov ecx, ebx
call fcn.004a1477
test al, al
je 0x4aea1a
mov ecx, ebx
call fcn.004b6807
mov eax, dword [ebx + 0x2f0]
test eax, eax
jne 0x4aeae5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + pe_nt_image_headers32]
test al, al
je 0x4aeaec
mov ecx, dword [0x7b0e18]
mov eax, dword [ecx]
call dword [eax + 0x5c]
test al, al
je 0x4aeaec
xor eax, eax
mov ecx, ebx
mov esi, eax
mov eax, dword [ebx]
call dword [eax + 0xe8]
test al, al
je 0x4aea60
inc esi
cmp dword [ebx + 0x1d4], 5
jb 0x4aea6c
or esi, 2
mov edi, dword [0x7b0e18]
mov ecx, ebx
call fcn.004a7320
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.00440856
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 9
jb 0x4aea95
mov eax, dword [eax]
mov edx, dword [edi]
mov ecx, edi
push esi
push 0
push eax
push 0x49033b
push 0x48ce0d
lea eax, [ebx + 8]
push eax
call dword [edx + 0x28]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
xor eax, eax
push eax
push 1
call fcn.0040f52f
call fcn.0046cb23
xor edx, edx
mov ecx, 0x12c
div ecx
add edx, 0x4b0
or byte [ebx + 0x2f8], 1
mov dword [ebx + 0x2f0], edx
jmp 0x4aeaec
dec eax
mov dword [ebx + 0x2f0], eax
mov ecx, ebx
call fcn.004a058f
mov eax, dword [ebx + 0x1e0]
sub eax, dword [ebx + 0x1dc]
push 4
pop ecx
cmp eax, ecx
jb 0x4aebaa
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x168]
test al, al
jne 0x4aebaa
mov eax, dword [ebx + 0x1dc]
mov ecx, dword [ebx + 0x288]
lea esi, [eax + ecx*4]
mov eax, dword [esi]
cmp dword [eax + 0x74], 0
jg 0x4aeba3
test byte [eax + 0x62], 1
jne 0x4aeba3
mov al, byte [0x7b9567]
or al, byte [0x7b16e9]
or al, byte [0x7b969a]
jne 0x4aeba3
call fcn.0048f87d
test eax, eax
jle 0x4aeba3
push esi
mov ecx, ebx
call fcn.004a872e
mov ecx, dword [esi]
mov byte [ebp + 0x64], al
cmp al, byte [ecx + 0x60]
je 0x4aeb6b
test al, al
jne 0x4aeb89
cmp byte [ecx + 0x60], 3
je 0x4aeb89
mov eax, dword [ecx + 0x28]
or eax, dword [ecx + 0x2c]
je 0x4aeb89
push dword [ecx + 0x1c]
lea eax, [ecx + 0x28]
push eax
call fcn.004a4c5e
test al, al
je 0x4aeba3
mov eax, dword [0x7b0fb4]
test eax, eax
jle 0x4aeba3
push dword [ebp + 0x64]
dec eax
mov ecx, ebx
push esi
mov dword [0x7b0fb4], eax
call fcn.004a33a2
mov ecx, ebx
call fcn.004b42c2
movzx esi, word [ebx + 0x138]
mov ecx, ebx
shr esi, 5
not esi
and esi, 1
add dword [ebx + 0x3d4], esi
push 0
pop eax
adc dword [ebx + 0x3d8], eax
mov eax, dword [ebx]
call dword [eax + 0xe8]
test al, al
jne 0x4aebe1
mov ecx, ebx
call fcn.004b5b3f
test al, al
je 0x4aebf0
add dword [ebx + 0x3dc], esi
push 0
pop eax
adc dword [ebx + 0x3e0], eax
mov al, byte [ebx + 0x143]
test al, 2
je 0x4aec60
and al, 0xfd
lea ecx, [ebp - 0x6c]
mov byte [ebx + 0x143], al
lea eax, [ebx + 0x1c4]
push eax
call fcn.00608d16
xor eax, eax
mov dword [ebp - 4], 0xa
mov esi, eax
cmp dword [ebp - 0x5c], eax
jbe 0x4aec40
push esi
lea ecx, [ebp - 0x6c]
call fcn.00424036
mov ecx, dword [eax]
test byte [ecx + 0x17b], 2
je 0x4aec3a
call fcn.004ea592
inc esi
cmp esi, dword [ebp - 0x5c]
jb 0x4aec21
lea ecx, [ebp - 0x6c]
call fcn.00470ce1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00470ce1
push 8
push 1
push dword [ebp - 0x6c]
call fcn.004280ef
cmp byte [ebp + 0x70], 0
je 0x4af02d
xor eax, eax
lea ecx, [ebp - 0x98]
mov edi, eax
mov dword [ebp + 0x58], eax
mov esi, eax
mov dword [ebp + 0x70], edi
lea eax, [ebx + 0x1c4]
mov dword [ebp + 0x64], esi
push eax
call fcn.00608d16
xor eax, eax
mov dword [ebp - 4], 0xb
cmp dword [ebp - 0x88], eax
jbe 0x4aecee
mov ebx, eax
push ebx
lea ecx, [ebp - 0x98]
call fcn.00424036
mov edi, dword [eax]
test byte [edi + 0x17b], 2
je 0x4aecc2
push dword [ebp + 0x78]
mov ecx, edi
push dword [ebp + 0x74]
call fcn.004eae11
mov eax, dword [ebp + 0x58]
add eax, dword [edi + 0x9c]
add esi, dword [edi + 0x94]
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
add eax, dword [edi + 0x58]
inc ebx
mov dword [ebp + 0x70], eax
cmp ebx, dword [ebp - 0x88]
jb 0x4aec9e
mov ebx, dword [ebp + 0x4c]
mov edi, eax
mov dword [ebp + 0x64], esi
lea ecx, [ebp - 0x98]
call fcn.00470ce1
xor eax, eax
mov dword [ebx + 0x4a0], esi
push eax
call fcn.0049583b
mov dword [ebp - 0x58], eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], edx
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.004967bd
push eax
lea ecx, [ebx + 0x63c]
call fcn.0049fa7f
imul eax, dword [ebx + 0x4ac], 0x7f
mov ecx, dword [ebp + 0x58]
mov dword [ebx + 0x4a8], ecx
mov dword [ebx + 0x4a4], edi
add eax, ecx
add eax, eax
shr eax, 8
mov dword [ebx + 0x4ac], eax
mov al, byte [ebx + 0x2f9]
movzx edx, al
cmp edi, dword [0x789a98]
jae 0x4aed77
cmp esi, dword [0x789a94]
jae 0x4aed77
test al, al
je 0x4aed7e
dec al
mov byte [ebx + 0x2f9], al
jmp 0x4aed7e
mov byte [ebx + 0x2f9], 0xf
xor al, al
cmp al, byte [ebx + 0x2f9]
sbb ecx, ecx
xor eax, eax
neg ecx
cmp eax, edx
sbb eax, eax
neg eax
cmp eax, ecx
je 0x4aeda5
xor eax, eax
mov ecx, ebx
push eax
push 0x10000
call fcn.004a4015
inc dword [ebx + 0x2fc]
xor edx, edx
mov eax, dword [ebx + 0x2fc]
push 0x3c
pop edi
div edi
test edx, edx
jne 0x4aee71
mov ecx, ebx
call fcn.004b5ba8
cmp byte [0x789a82], 0
je 0x4aedfc
mov ecx, ebx
call fcn.004a6ecb
cmp dword [ebx + 0x1a8], eax
jae 0x4aedec
mov eax, dword [0x7b0464]
cmp eax, dword [0x7899e4]
jb 0x4aedfc
cmp byte [ebx + 0x143], 0x80
jae 0x4aedfc
mov ecx, ebx
call fcn.004a419c
mov ecx, ebx
call fcn.004a4f10
xor eax, eax
push eax
call fcn.0049583b
mov esi, dword [ebx + 0x174]
mov ecx, dword [ebx + 0x178]
add esi, 0xe4c
adc ecx, 0
cmp ecx, edx
jg 0x4aee71
jl 0x4aee2a
cmp esi, eax
jae 0x4aee71
mov ecx, dword [0x7b0e18]
xor eax, eax
push 0x491614
push eax
lea eax, [ebx + 8]
mov edx, dword [ecx]
push eax
xor eax, eax
push eax
call dword [edx + 0x18]
call fcn.00669d90
cdq
idiv edi
push 0
mov eax, edx
cdq
mov edi, eax
mov esi, edx
pop eax
sub edi, 0x1e
push eax
sbb esi, eax
call fcn.0049583b
add eax, edi
mov dword [ebx + 0x174], eax
adc edx, esi
mov dword [ebx + 0x178], edx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.004f00e9
test byte [ebx + 0x14d], 8
mov eax, dword [0x7b043c]
mov edi, dword [0x7b0438]
mov dword [ebp + 0x70], eax
jne 0x4aeff8
push 4
pop eax
test byte [ebx + 0x14c], al
je 0x4aeff8
lea esi, [ebx + 0x214]
cmp dword [esi + 0x14], 0x10
jb 0x4aeeba
mov eax, dword [esi]
jmp 0x4aeebc
mov eax, esi
push 0x6d7414
push eax
call fcn.0047db9b
test al, al
jne 0x4aeeea
cmp dword [esi + 0x14], 0x10
jb 0x4aeed5
mov eax, dword [esi]
jmp 0x4aeed7
mov eax, esi
push 0x6cd54c
push eax
call fcn.0047db9b
test al, al
je 0x4aeff8
push dword [0x7ad1d8]
push dword [ebx + 0x22c]
call fcn.0049b370
cdq
add eax, dword [ebx + 0x33c]
adc edx, dword [ebx + 0x340]
cmp edx, dword [ebp + 0x70]
ja 0x4aeff8
jb 0x4aef1b
cmp eax, edi
jae 0x4aeff8
or byte [ebx + 0x14d], 8
push 0xc4
call fcn.0063ffa4
pop ecx
mov dword [ebp + 0x70], eax
mov dword [ebp - 4], 0xc
test eax, eax
je 0x4aef44
mov ecx, eax
call fcn.004666da
jmp 0x4aef46
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [ebp + 0x60], ecx
test ecx, ecx
je 0x4aef59
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
xor eax, eax
mov dword [ebp - 4], 0xd
push eax
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0046059a
mov ecx, dword [ebp + 0x60]
push eax
lea ecx, [ecx + 8]
call fcn.00427c6d
xor eax, eax
lea ecx, [ebp - 0x13c]
push eax
push 1
call fcn.004281f2
xor eax, eax
mov ecx, esi
push eax
push 1
call fcn.0040e5d3
mov eax, dword [ebp + 0x60]
add eax, 8
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00440856
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 0xe
call fcn.0040efd9
xor eax, eax
mov byte [ebp - 4], 0xd
push eax
push 1
lea ecx, [ebp - 0x154]
call fcn.0040f52f
cmp dword [esi + 0x14], 0x10
jb 0x4aefd7
mov esi, dword [esi]
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp + 0x60]
push eax
push 0x4ad50d
push ebx
push esi
call fcn.0046736f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x60]
call fcn.00427bf2
mov ecx, ebx
call fcn.004a0157
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xe8]
test al, al
jne 0x4af02d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x15c]
and al, 0x21
cmp al, 1
jne 0x4af02d
add dword [ebx + 0x324], 1
push 0
pop eax
adc dword [ebx + 0x328], eax
lea ecx, [ebp + 0x53]
lea eax, [ebx + 0x240]
push ecx
push eax
lea ecx, [ebp - 0xb8]
mov dword [ebp + 0x70], eax
call fcn.004964d5
mov ebx, dword [ebp - 0xb4]
mov dword [ebp - 4], 0xf
mov edi, dword [ebx]
jmp 0x4af07f
mov eax, dword [ebp + 0x4c]
lea ecx, [edi + 8]
push ecx
mov ecx, dword [ebp + 0x70]
mov esi, dword [eax + 0x244]
lea eax, [ebp + 0x54]
push eax
call fcn.004927fb
cmp dword [ebp + 0x54], esi
je 0x4af07d
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov edi, dword [edi]
cmp edi, ebx
jne 0x4af057
lea ecx, [ebp - 0xb8]
call fcn.0048c8bf
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret 0xc