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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040d21a
xor ebx, ebx
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], ebx
je 0x40ac6f
mov ecx, esi
call fcn.00402681
test al, al
je 0x40ac6f
cmp dword [ebp - 8], ebx
jle 0x40ac6f
xor eax, eax
cmp dword [esi + 0x84], ebx
je 0x40ac17
mov ecx, dword [esi + 0x7c]
mov edx, ecx
mov edi, dword [edx]
cmp byte [edi + 0x38], 3
jne 0x40ac08
inc eax
add edx, 4
cmp eax, dword [esi + 0x84]
jne 0x40abf2
jmp 0x40ac17
push 3
push dword [ecx + eax*4]
mov ecx, esi
call fcn.00409891
dec dword [ebp - 8]
cmp dword [ebp - 8], ebx
jle 0x40ac6f
test byte [esi + 0x38], 0x40
jne 0x40ac2a
cmp byte [0x47a179], bl
je 0x40ac6f
cmp dword [esi + 0x84], ebx
je 0x40ac6f
mov edi, dword [0x47a1a8]
cmp edi, ebx
je 0x40ac6f
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x7c]
mov ecx, dword [ecx + eax*4]
mov edx, dword [0x482c44]
mov eax, edx
sub eax, dword [ecx + 0x28]
cmp eax, edi
jbe 0x40ac68
cmp eax, ebx
jge 0x40ac60
mov dword [ecx + 0x28], edx
jmp 0x40ac68
push ecx
mov ecx, esi
call fcn.00406f6c
mov ecx, esi
call fcn.00403209
test byte [esi + 0x38], 1
jne 0x40ac9b
cmp dword [ebp + 0xc], ebx
je 0x40b397
mov dword [esi + 0x1ac], ebx
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1b4], ebx
mov byte [esi + 0x11d], bl
jmp 0x40b397
mov al, byte [esi + 0x3f]
test al, 2
jne 0x40adc8
or al, 2
xor edi, edi
mov byte [esi + 0x3f], al
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x90], ebx
jbe 0x40acee
mov eax, dword [esi + 0x88]
lea ebx, [eax + edi*4]
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], eax
jb 0x40acd7
lea ecx, [ebp - 0x1c]
call fcn.0040fd2b
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov ecx, dword [ebx]
mov edx, dword [ebp - 0x1c]
inc edi
mov dword [edx + eax*4], ecx
cmp edi, dword [esi + 0x90]
jb 0x40acbe
mov ecx, dword [esi + 0x58]
xor eax, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test ecx, ecx
jbe 0x40ada0
mov ecx, dword [esi + 0x50]
mov edi, dword [ecx + eax*4]
cmp dword [edi + 0x3c], 0x422169
mov eax, dword [edi + 0x40]
jne 0x40ad90
xor ebx, ebx
cmp dword [ebp - 0x14], ebx
je 0x40ad5d
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ad47
test dl, dl
je 0x40ad43
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ad47
inc eax
inc eax
inc ecx
inc ecx
test dl, dl
jne 0x40ad29
xor eax, eax
jmp 0x40ad4c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ad58
inc ebx
cmp ebx, dword [ebp - 0x14]
jne 0x40ad20
jmp 0x40ad5d
cmp ebx, 0xffffffff
jne 0x40ad7c
cmp dword [edi + 0x2a], 0
je 0x40ad6c
push 0
mov ecx, edi
call fcn.0042631f
push edi
mov ecx, esi
call fcn.00406efd
dec dword [ebp - 0xc]
dec dword [ebp - 8]
jmp 0x40ad90
dec dword [ebp - 0x14]
cmp ebx, dword [ebp - 0x14]
je 0x40ad90
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [eax + ecx*4]
mov dword [eax + ebx*4], ecx
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0xc]
jb 0x40ad01
xor edi, edi
cmp dword [ebp - 0x14], edi
jbe 0x40adbe
mov eax, dword [ebp - 0x1c]
push 1
push 0
push dword [eax + edi*4]
mov ecx, esi
call fcn.0040a6c4
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x40ada7
mov ecx, dword [ebp - 0x1c]
call fcn.0043492c
xor ebx, ebx
test byte [esi + 0x3f], 0x10
je 0x40af73
mov eax, dword [esi + 0x270]
mov ecx, dword [esi + 0x26c]
cmp eax, ebx
ja 0x40adea
cmp ecx, ebx
jbe 0x40af73
mov edx, dword [esi + 0x14]
add ecx, 0x3fff
adc eax, ebx
shrd ecx, eax, 0xe
shr eax, 0xe
xor edi, edi
cmp edx, ecx
jne 0x40af73
cmp edi, eax
jne 0x40af73
mov ecx, dword [esi + 4]
call fcn.00402717
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x40ae2b
mov ecx, edi
call fcn.00416fd9
push edi
call fcn.004349f9
pop ecx
mov ecx, esi
mov dword [esi + 4], ebx
call fcn.00402faa
push eax
mov ecx, esi
call fcn.00402f07
mov ecx, dword [esi]
push ebx
call fcn.0041781e
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00409d79
test al, al
je 0x40af22
test dword [0x486524], 0x4000000
je 0x40ae74
mov eax, dword [esi]
push dword [eax + 0x1c]
push str.Finished_receiving_metadata_for__s
call fcn.0045c3cd
pop ecx
pop ecx
call fcn.0040d10f
mov ecx, eax
call fcn.0040d095
push eax
mov ecx, esi
call fcn.00402f54
mov ecx, esi
mov edi, eax
call fcn.00402faa
mov ecx, eax
mov edx, edi
mov dword [ebp - 0x10], ecx
call fcn.00448abf
test eax, eax
jne 0x40aeba
mov ecx, edi
call fcn.004361fc
test al, al
je 0x40aec2
mov ecx, dword [ebp - 0x10]
mov edx, edi
call fcn.00448abf
test eax, eax
je 0x40aec2
push edi
mov ecx, esi
call fcn.00402f07
mov ecx, edi
call fcn.0043492c
mov ecx, dword [esi]
add ecx, 0x18
call fcn.0042d71a
call fcn.004352f9
mov ecx, eax
call fcn.0042d7aa
mov ecx, dword [esi]
push eax
call fcn.00417a2b
mov ecx, esi
call fcn.00403f02
lea eax, [esi + 0x98]
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
xor edi, edi
cmp dword [esi + 0x74], ebx
jbe 0x40af14
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi*4]
call fcn.00426341
inc edi
cmp edi, dword [esi + 0x74]
jb 0x40af03
or byte [esi + 0x3f], 0x20
push ebx
mov ecx, esi
call fcn.0040a170
jmp 0x40af73
test dword [0x486524], 0x20000
je 0x40af3f
mov eax, dword [esi]
push dword [eax + 0x1c]
push str.ERROR:_Metadata_for__s_could_not_be_loaded_
call fcn.0045c3cd
pop ecx
pop ecx
test byte [esi + 0x3f], 0x40
je 0x40af55
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 4]
xor edx, edx
call fcn.004064b3
mov ecx, esi
call fcn.00403f02
lea eax, [esi + 0x98]
push 1
mov ecx, esi
mov dword [eax], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
call fcn.00407193
cmp dword [ebp + 0xc], ebx
je 0x40b275
mov eax, 0xffff
mov ecx, eax
mov word [ebp - 0xc], cx
mov word [ebp - 0xa], ax
jmp 0x40af9b
mov eax, dword [edi + 0x14]
add eax, 0x2d
cmp dword [0x482c44], eax
jg 0x40afae
mov ecx, dword [esi + 0x78]
lea edx, [ebp - 0xc]
call fcn.00418b1b
mov edi, eax
test edi, edi
jne 0x40af8d
jmp 0x40afea
test dword [0x486524], 0x20000000
je 0x40afc7
push edi
push str.Timing_out_hole_punch_request__A_
call fcn.0045c3cd
pop ecx
pop ecx
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 0x4f]
mov edx, ecx
shl edx, 0x1c
sar edx, 0x1c
dec edx
xor edx, ecx
and edx, 0xf
xor edx, ecx
mov dword [eax + 0x4f], edx
mov ecx, dword [esi + 0x78]
mov edx, edi
call fcn.00418a67
cmp byte [esi + 0x3d], 0
je 0x40b010
call fcn.004338ca
movzx ecx, byte [esi + 0x3d]
shr ecx, 1
xor edx, edx
inc ecx
div ecx
shl edx, 0xf
add dword [esi + 0xcc], edx
adc dword [esi + 0xd0], 0
test byte [esi + 0x38], 0x20
jne 0x40b160
cmp byte [0x47a0ee], 0
mov al, byte [0x47a0f0]
mov bl, byte [0x47a0ef]
mov byte [ebp - 1], al
je 0x40b0bb
mov eax, dword [esi + 8]
cmp eax, 0x80000
ja 0x40b047
mov bl, 0xa
mov byte [ebp - 1], 0x1e
jmp 0x40b0bb
mov dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
test eax, eax
jge 0x40b057
fadd dword [0x461bf0]
fdiv qword [0x462188]
push ecx
push ecx
fstp qword [esp]
call sub.MSVCRT.dll_ceil
pop ecx
pop ecx
call fcn.00401066
mov edi, 0xff
cmp eax, edi
jbe 0x40b079
mov eax, edi
cmp eax, 0xa
jae 0x40b081
push 0xa
pop eax
fild dword [esi + 8]
mov bl, al
mov eax, dword [esi + 8]
test eax, eax
jge 0x40b093
fadd dword [0x461bf0]
fmul qword [0x462180]
push ecx
push ecx
fstp qword [esp]
call sub.MSVCRT.dll_ceil
pop ecx
pop ecx
call fcn.00401066
cmp eax, edi
jbe 0x40b0b0
mov eax, edi
cmp eax, 0x1e
jae 0x40b0b8
push 0x1e
pop eax
mov byte [ebp - 1], al
inc byte [esi + 0x34]
cmp byte [esi + 0x34], bl
jb 0x40b0d3
xor eax, eax
push eax
push eax
push eax
mov ecx, esi
mov byte [esi + 0x34], 0
call fcn.00407a1b
inc byte [esi + 0x36]
cmp byte [esi + 0x36], 0xa
jb 0x40b0f8
test byte [esi + 0x3e], 8
mov byte [esi + 0x36], 0
jne 0x40b0f8
mov ecx, esi
call fcn.004036ba
test al, al
je 0x40b0f8
mov ecx, esi
call fcn.00403661
mov al, byte [ebp - 1]
inc byte [esi + 0x35]
cmp byte [esi + 0x35], al
jb 0x40b10a
mov ecx, esi
call fcn.00406536
mov eax, dword [esi + 0x114]
test eax, eax
jne 0x40b159
mov al, byte [esi + 0x41]
and al, 3
cmp al, 1
jne 0x40b160
call fcn.00410629
test al, al
je 0x40b160
lea ecx, [esi + 0x15c]
mov edx, 0x40d9b7
call fcn.0041188a
call fcn.004338ca
xor edx, edx
mov ecx, 0x12c
div ecx
add edx, 0x4b0
or byte [esi + 0x11c], 1
mov dword [esi + 0x114], edx
jmp 0x40b160
dec eax
mov dword [esi + 0x114], eax
mov ecx, esi
call fcn.00402bdd
xor ebx, ebx
cmp dword [esi + 0x84], ebx
je 0x40b20c
mov ecx, esi
call fcn.00402681
test al, al
jne 0x40b20c
mov eax, dword [esi + 0xc8]
mov ecx, dword [esi + 0x7c]
mov edi, dword [ecx + eax*4]
test byte [edi + 0x3a], 1
jne 0x40b205
mov al, byte [0x482224]
or al, byte [0x482812]
or al, byte [0x4833b0]
jne 0x40b205
call fcn.0040d21a
test eax, eax
jle 0x40b205
push edi
mov ecx, esi
call fcn.00402bb4
mov byte [ebp - 8], al
mov al, byte [edi + 0x38]
cmp byte [ebp - 8], al
je 0x40b1ca
cmp byte [ebp - 8], bl
jne 0x40b1ec
cmp al, 3
je 0x40b1ec
cmp dword [edi + 0x20], ebx
je 0x40b1ec
mov ecx, dword [0x482c44]
mov eax, ecx
sub eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x14]
jbe 0x40b205
cmp eax, ebx
jge 0x40b1ec
mov dword [edi + 0x20], ecx
jmp 0x40b205
cmp dword [0x48225c], ebx
jle 0x40b205
push dword [ebp - 8]
dec dword [0x48225c]
push edi
mov ecx, esi
call fcn.00409891
mov ecx, esi
call fcn.00403209
mov bl, byte [esi + 0x38]
movzx edi, bl
shr edi, 5
not edi
and edi, 1
add dword [esi + 0x170], edi
mov ecx, esi
call fcn.00402666
test al, al
je 0x40b261
add dword [esi + 0x174], edi
lea eax, [esi + 0x144]
cmp dword [eax], 0
jne 0x40b244
mov ecx, dword [0x482c44]
mov dword [eax], ecx
test byte [esi + 0x3e], 6
jne 0x40b275
mov ecx, esi
call fcn.004067eb
test al, al
je 0x40b25b
or byte [esi + 0x3e], 2
jmp 0x40b275
or byte [esi + 0x3e], 4
jmp 0x40b275
cmp byte [0x47a183], 0
je 0x40b275
test bl, 0x40
je 0x40b275
add dword [esi + 0x174], edi
mov al, byte [esi + 0x3e]
test al, 1
je 0x40b2a2
and al, 0xfe
xor edi, edi
mov byte [esi + 0x3e], al
cmp dword [esi + 0x74], edi
je 0x40b2a2
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + edi*4]
test byte [ecx + 0xd5], 1
je 0x40b29c
call fcn.00422e3a
inc edi
cmp edi, dword [esi + 0x74]
jne 0x40b288
cmp dword [ebp + 0xc], 0
je 0x40b397
xor ecx, ecx
xor ebx, ebx
xor eax, eax
cmp dword [esi + 0x74], ecx
mov dword [ebp - 8], ecx
jmp 0x40b2eb
mov edx, dword [esi + 0x6c]
mov edi, dword [ebp - 8]
mov edi, dword [edx + edi*4]
test byte [edi + 0xd5], 1
je 0x40b2d9
mov ecx, edi
call fcn.00425170
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
add eax, dword [edi + 0x5d]
add ecx, dword [edi + 0x65]
add ebx, dword [edi + 0x49]
inc dword [ebp - 8]
mov edx, dword [ebp - 8]
cmp edx, dword [esi + 0x74]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
jne 0x40b2ba
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x1b4], ecx
mov dword [esi + 0x1b0], ebx
cmp ebx, dword [0x47a16c]
jae 0x40b327
cmp eax, dword [0x47a168]
jae 0x40b327
lea ecx, [esi + 0x11d]
mov al, byte [ecx]
test al, al
je 0x40b32e
dec al
mov byte [ecx], al
jmp 0x40b32e
mov byte [esi + 0x11d], 0xf
lea eax, [esi + 0x120]
inc dword [eax]
mov eax, dword [eax]
push 0x3c
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x40b397
mov ecx, esi
call fcn.004061c9
cmp byte [0x47a15e], 0
je 0x40b378
mov eax, dword [esi + 0x58]
cmp eax, dword [0x47a0f8]
jae 0x40b36b
mov eax, dword [0x482c50]
cmp eax, dword [0x47a100]
jb 0x40b378
test byte [esi + 0x3e], 0x20
jne 0x40b378
mov ecx, esi
call fcn.00404118
mov ecx, esi
call fcn.004060a3
cmp byte [0x47a158], 0
je 0x40b397
test byte [esi + 0x38], 1
je 0x40b397
mov ecx, dword [esi]
push 0xfffffffffffffffe
call fcn.00416b3c
pop edi
pop esi
pop ebx
leave
ret 8