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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb4
mov ebp, esp
mov edi, edx
mov dword [esp + 8], ecx
call 0x40ad6f
pop eax
mov bl, 1
lea edx, [esp + 0xc]
xor esi, esi
mov ecx, ebp
mov byte [edx + 0x18], bl
mov dword [esp + 0x40], eax
mov dword [edx], esi
call fcn.0040fa3f
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
lea edx, [esp + 0x98]
mov dword [esp + 0x58], edi
mov dword [edx], ebp
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx + 0xc], esi
mov dword [edx + 0x10], esi
lea esi, [edi + 0x1c]
lea ecx, [esp + 0x74]
mov byte [edx + 0x14], bl
mov dword [esp + 0x80], esi
mov edx, dword [esi]
test edx, edx
je 0x40adcf
push dword [edi + 0x24]
call fcn.0040e980
add esp, 4
mov edx, dword [esp + 0x74]
jmp 0x40add9
mov dword [esp + 0x74], 0
xor edx, edx
xor esi, esi
mov eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
cmp byte [edi + 0x41], 0
mov edi, 0
je 0x40adf2
mov ebx, dword [esp + 0x7c]
mov edi, edx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x70], ebx
push ebx
push edi
push ecx
push eax
push 0x4b0538
lea eax, [esp + 0x20]
push eax
push dword [esp + 0xb4]
call dword [edx + 0x1c]
add esp, 0x1c
test al, al
je 0x40ae49
lea ecx, [esp + 0x2c]
call fcn.0042db49
cmp byte [esp + 0x2c], 4
je 0x40ae49
mov ebx, dword [esp + 0x2c]
cmp bl, 4
jne 0x40c451
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x3c], eax
je 0x40aed3
lea edx, [edi + eax]
xor ecx, ecx
mov al, byte [edi]
movzx ebx, al
test al, al
js 0x40ae6e
inc edi
jmp 0x40aec3
movzx esi, byte [edi + 1]
and ebx, 0x1f
and esi, 0x3f
cmp al, 0xdf
jbe 0x40aeb1
movzx ebp, byte [edi + 2]
shl esi, 6
and ebp, 0x3f
or ebp, esi
cmp al, 0xf0
jb 0x40aebb
movzx eax, byte [edi + 3]
and ebx, 7
shl ebp, 6
mov esi, ebx
shl esi, 0x12
and eax, 0x3f
or eax, ebp
mov ebx, eax
or ebx, esi
cmp ebx, 0x110000
je 0x40aed5
add edi, 4
jmp 0x40aec3
shl ebx, 6
add edi, 2
or ebx, esi
jmp 0x40aec3
shl ebx, 0xc
add edi, 3
or ebx, ebp
xor eax, eax
cmp ebx, 0xa
sete al
add ecx, eax
cmp edi, edx
jne 0x40ae62
jmp 0x40aed5
xor ecx, ecx
add dword [esp + 0xa4], ecx
lea ecx, [esp + 0x2c]
mov eax, dword [esp + 0x98]
mov edx, dword [eax]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
call fcn.00410286
add esp, 8
cmp byte [esp + 0x2c], 4
jne 0x40af06
mov edi, dword [esp + 0x58]
jmp 0x40af17
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x58]
cmp bl, 4
jne 0x40c451
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x14]
call fcn.00411357
cmp dword [esp + 0x10], 0
mov dword [esp + 0x60], eax
je 0x40af41
push dword [esp + 0xc]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esp]
call fcn.0040fd82
mov ebx, dword [esp + 0x40]
test al, al
je 0x40c43a
mov eax, dword [edi + 0x28]
xor ebp, ebp
mov dword [esp + 0x4c], 4
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
test eax, eax
je 0x40b175
mov edx, dword [esp]
lea ecx, [esp + 0xc]
push dword [edi + 0x30]
push eax
call fcn.00410286
add esp, 8
cmp byte [esp + 0xc], 4
je 0x40af98
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x40c3d1
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40aff0
mov edi, dword [edi + 0x28]
mov dl, byte [edi]
movzx ebp, dl
test dl, dl
js 0x40afb0
lea ebx, [edi + 1]
jmp 0x40b015
movzx esi, byte [edi + 1]
and ebp, 0x1f
and esi, 0x3f
cmp dl, 0xdf
jbe 0x40affe
movzx ecx, byte [edi + 2]
shl esi, 6
and ecx, 0x3f
or ecx, esi
cmp dl, 0xf0
jb 0x40b008
movzx edx, byte [edi + 3]
and ebp, 7
shl ecx, 6
mov esi, ebp
shl esi, 0x12
and edx, 0x3f
or edx, ecx
mov ebp, edx
or ebp, esi
cmp ebp, 0x110000
jne 0x40b012
mov eax, 4
xor ebp, ebp
xor edi, edi
jmp 0x40b169
shl ebp, 6
lea ebx, [edi + 2]
or ebp, esi
jmp 0x40b015
shl ebp, 0xc
lea ebx, [edi + 3]
or ebp, ecx
jmp 0x40b015
lea ebx, [edi + 4]
add edi, eax
mov eax, 3
mov dword [esp + 0x3c], edi
add edi, 3
mov dword [esp + 0x44], edi
sub edi, ebx
shr edi, 2
cmp edi, 4
cmovb edi, eax
cmp edi, 0x1ffffffe
ja 0x40c7b1
lea esi, [edi*4 + 4]
inc edi
test esi, esi
js 0x40c7b1
je 0x40b06a
mov al, byte [0x4c0890]
mov ecx, esi
mov edx, 4
call fcn.0040de10
test eax, eax
jne 0x40b06f
jmp 0x40c7df
mov eax, 4
mov esi, dword [esp + 0x3c]
mov dword [eax], ebp
xor ebp, ebp
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], 1
inc ebp
cmp ebx, esi
je 0x40b165
mov cl, byte [ebx]
movzx edi, cl
test cl, cl
js 0x40b09c
inc ebx
jmp 0x40b0ff
movzx edx, byte [ebx + 1]
and edi, 0x1f
mov dword [esp + 0x28], eax
and edx, 0x3f
cmp cl, 0xdf
jbe 0x40b0e5
movzx eax, byte [ebx + 2]
shl edx, 6
and eax, 0x3f
or eax, edx
cmp cl, 0xf0
jb 0x40b0ef
movzx ecx, byte [ebx + 3]
and edi, 7
shl eax, 6
mov edx, edi
shl edx, 0x12
and ecx, 0x3f
or ecx, eax
mov edi, ecx
or edi, edx
cmp edi, 0x110000
je 0x40b13a
add ebx, 4
jmp 0x40b0f7
shl edi, 6
add ebx, 2
or edi, edx
jmp 0x40b0fb
shl edi, 0xc
add ebx, 3
or edi, eax
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x28]
cmp ebp, dword [esp + 0x10]
je 0x40b117
mov dword [eax + ebp*4], edi
inc ebp
cmp ebx, esi
mov dword [esp + 0x14], ebp
jne 0x40b090
jmp 0x40b13a
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
mov edx, ebp
sub eax, ebx
shr eax, 2
inc eax
push eax
call fcn.00465b4a
mov esi, dword [esp + 0x40]
add esp, 4
mov eax, dword [esp + 0xc]
jmp 0x40b105
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x50], 0
mov ebx, dword [esp + 0x40]
je 0x40b169
push dword [esp + 0x4c]
push 0
push dword [0x4c0838]
mov esi, eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, esi
jmp 0x40b169
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], ebp
lea ecx, [esp + 0xc]
mov edx, esp
call fcn.00410e1c
cmp byte [esp + 0xc], 4
je 0x40b193
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x40c3d1
movzx edx, byte [esp + 5]
lea ecx, [esp + 0xc]
call fcn.00410a4c
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
cmp edi, 0x14
je 0x40c3bc
lea eax, [edi - 1]
cmp eax, 7
ja 0x40b26b
mov eax, dword [eax*4 + 0x40c7fc]
add eax, ebx
jmp eax
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
jmp 0x40b2df
cmp edi, 0x13
jne 0x40b2df
cmp esi, 0x20
jb 0x40b193
mov eax, ebp
cmp esi, 0x7f
je 0x40b193
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], eax
cmp edx, dword [esp + 0x50]
mov dword [esp + 0x38], edx
jne 0x40b2ac
mov ebx, ecx
lea ecx, [esp + 0x4c]
push 1
call fcn.00465b4a
mov edx, dword [esp + 0x3c]
mov ecx, ebx
add esp, 4
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
lea ebp, [eax + ebx*4]
mov eax, edx
sub eax, ebx
jbe 0x40bdfc
shl eax, 2
lea ecx, [ebp + 4]
push eax
push ebp
push ecx
call fcn.00457f90
add esp, 0xc
jmp 0x40be02
cmp edi, 1
jne 0x40b193
mov eax, ebp
test ecx, ecx
je 0x40b193
mov ebp, eax
push esi
jmp 0x40ba60
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
jmp 0x40b193
jne 0x40c7a2
mov dword [ebp], esi
mov eax, dword [esp + 0x38]
mov ebp, dword [esp + 0x28]
lea edx, [eax + 1]
lea ecx, [ebp + 1]
cmp edx, ecx
mov dword [esp + 0x54], edx
jb 0x40c77f
mov eax, dword [esp + 0x48]
mov ebx, esi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0xc], 1
lea esi, [eax + ecx*4]
lea ecx, [eax + edx*4]
xor eax, eax
xor edx, edx
sub ecx, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
shr ecx, 2
lea eax, [ecx + 1]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0xc]
push eax
call fcn.00465b22
add esp, 4
cmp ebx, 0x80
mov dword [esp + 0x3c], ebx
jae 0x40be94
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x40be7f
lea ecx, [esp + 0xc]
call fcn.0040f1bd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
mov byte [eax + edx], cl
inc edx
mov dword [esp + 0x14], edx
jmp 0x40bf97
mov eax, ebx
cmp ebx, 0x800
mov dword [esp + 0x2c], 0
jae 0x40bf25
shr eax, 6
or al, 0xc0
mov byte [esp + 0x2c], al
mov eax, ebx
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2d], al
mov eax, 2
jmp 0x40bf86
cmp ebx, 0x10000
jae 0x40bf54
shr eax, 0xc
or al, 0xe0
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2d], al
mov eax, ebx
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2e], al
mov eax, 3
jmp 0x40bf86
shr eax, 0x12
or al, 0xf0
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 6
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2e], al
mov eax, ebx
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2f], al
mov eax, 4
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push eax
call fcn.00433fea
add esp, 4
cmp dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x48]
je 0x40c07f
mov ebx, dword [esi]
cmp ebx, 0x80
jae 0x40bfd7
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x40bfc6
lea ecx, [esp + 0xc]
call fcn.0040f1bd
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov byte [eax + edx], bl
inc edx
mov dword [esp + 0x14], edx
jmp 0x40c075
mov eax, ebx
cmp ebx, 0x800
mov dword [esp + 0x2c], 0
jae 0x40c003
shr eax, 6
and bl, 0x3f
or al, 0xc0
or bl, 0x80
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], bl
mov eax, 2
jmp 0x40c064
cmp ebx, 0x10000
jae 0x40c032
shr eax, 0xc
or al, 0xe0
mov byte [esp + 0x2c], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2d], al
mov byte [esp + 0x2e], bl
mov eax, 3
jmp 0x40c064
shr eax, 0x12
or al, 0xf0
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2d], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [esp + 0x2e], al
mov eax, 4
mov byte [esp + 0x2f], bl
lea ecx, [esp + 0xc]
lea edx, [esp + 0x2c]
push eax
call fcn.00433fea
add esp, 4
add esi, 4
dec ebp
jne 0x40bfa5
mov esi, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp]
lea ecx, [esp + 0xc]
push ebp
push esi
call fcn.00410286
add esp, 8
cmp byte [esp + 0xc], 4
je 0x40c0af
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x40c49d
mov edx, dword [esp]
dec ebp
lea ecx, [esp + 0xc]
push ebp
push dword [esp + 8]
call fcn.0041178b
add esp, 8
cmp byte [esp + 0xc], 4
je 0x40c0d7
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x40c49d
lea ecx, [esp + 0xc]
mov edx, esp
call fcn.00410e1c
cmp byte [esp + 0xc], 4
je 0x40c0f5
mov eax, dword [esp + 0xc]
cmp al, 4
jne 0x40c49d
test ebx, ebx
je 0x40c108
push esi
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [esp + 0x40]
jmp 0x40b261
mov eax, dword [esp + 8]
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax], 0
jmp 0x40c66c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 0
jmp 0x40c66c
mov ecx, dword [esp + 8]
xor eax, eax
mov dword [ecx], 1
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
jmp 0x40c685
mov esi, dword [esp + 0x30]
mov edi, ebx
shrd edi, esi, 8
cmp dword [esp + 0x10], 0
je 0x40c474
push dword [esp + 0xc]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [esp + 8]
shl edi, 8
movzx eax, bl
or eax, edi
mov dword [ecx + 8], esi
mov dword [ecx + 4], eax
mov dword [ecx], 0
jmp 0x40c685
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
test ebx, ebx
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [edx], 0
je 0x40c66c
push esi
jmp 0x40c65e
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
cmp dword [esp + 0x50], 0
je 0x40c685
push dword [esp + 0x4c]
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x40c6a3
cmp dword [esp + 0x78], 0
je 0x40c6a3
push eax
push 0
push dword [0x4c0838]
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esp]
lock dec dword [eax]
jne 0x40c6b3
mov ecx, dword [esp]
call fcn.0040f439
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret
add esp, 4
ud2
call fcn.00465940
ud2
push 0x468fbc
jmp 0x40c7ef
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
call fcn.004659e0
ud2
call fcn.0040de80
ud2
mov ecx, 4
mov edx, esi
jmp 0x40c778
call fcn.00465c20
jmp 0x40c705