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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3ac
mov eax, dword [0x43386c]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
cmp edi, 0xffffffff
jl 0x40be2f
mov ecx, dword [ebx]
cmp edi, dword [ecx + 4]
jge 0x40be2f
cmp dword [ebx + 4], 0xffffffff
je 0x40b936
call fcn.0040b79a
or dword [ebx + 4], 0xffffffff
cmp edi, dword [ebx + 0x238]
jne 0x40b960
cmp edi, 0xffffffff
je 0x40b965
push 0x230
lea eax, [ebx + 8]
push eax
push esi
call fcn.0040d280
add esp, 0xc
xor eax, eax
jmp 0x40be34
cmp edi, 0xffffffff
jne 0x40b9aa
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [esi], eax
xor eax, eax
mov word [esi + 4], ax
mov dword [esi + 0x20c], eax
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], eax
mov dword [esi + 0x220], eax
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], eax
mov dword [esi + 0x22c], eax
jmp 0x40b959
mov ecx, dword [ebx]
cmp edi, dword [ecx + 0x10]
jge 0x40b9bd
call fcn.0040b11a
jmp 0x40b9bd
call fcn.0040b151
mov eax, dword [ebx]
mov ecx, eax
cmp dword [eax + 0x10], edi
jl 0x40b9b8
sub esp, 0x10
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
lea edx, [esp + 0x3c]
call fcn.0040af1b
mov ecx, dword [ebx]
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x80]
call fcn.0040b26a
pop ecx
pop ecx
test eax, eax
je 0x40ba0c
mov eax, 0x700
jmp 0x40be34
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
push 0
call fcn.0040aa4c
pop ecx
test eax, eax
je 0x40ba2a
mov eax, 0x800
jmp 0x40be34
push dword [esp + 0x10]
call fcn.0040c92a
pop ecx
mov ecx, dword [ebx]
mov edi, eax
push dword [ecx]
xor edx, edx
push dword [esp + 0x14]
inc edx
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.0040aab7
pop ecx
pop ecx
cmp eax, dword [esp + 0x10]
je 0x40ba5d
push edi
call fcn.0040df64
pop ecx
jmp 0x40ba20
mov eax, dword [ebx]
push 0x104
mov eax, dword [eax + 0x10]
mov dword [esi], eax
lea eax, [esp + 0x1ac]
push eax
push 0xffffffffffffffff
lea eax, [esp + 0xac]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [esp + 0x1a8]
movzx eax, word [edi]
test ax, ax
je 0x40baa3
cmp word [edi + 2], 0x3a
jne 0x40baa3
add edi, 4
jmp 0x40ba8f
cmp eax, 0x5c
je 0x40baad
cmp eax, 0x2f
jne 0x40bab2
add edi, 2
jmp 0x40ba8f
push 0x42d7c8
push edi
call fcn.0041018c
pop ecx
pop ecx
test eax, eax
jne 0x40baf6
push str..._
push edi
call fcn.0041018c
pop ecx
pop ecx
test eax, eax
jne 0x40baf6
push 0x42d7e0
push edi
call fcn.0041018c
pop ecx
pop ecx
test eax, eax
jne 0x40baf6
push str._.._
push edi
call fcn.0041018c
pop ecx
pop ecx
test eax, eax
je 0x40bafb
lea edi, [eax + 8]
jmp 0x40ba8f
lea eax, [esi + 4]
push edi
push eax
call fcn.00411297
mov edx, dword [esp + 0x5c]
mov eax, edx
shr eax, 0x1e
pop ecx
and eax, 0xffffff01
pop ecx
mov ecx, edx
shr ecx, 0x17
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x20]
not cl
shr eax, 8
and cl, 1
mov byte [esp + 0x1c], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x78], 1
test eax, eax
je 0x40bb4c
cmp eax, 7
je 0x40bb4c
cmp eax, 0xb
je 0x40bb4c
cmp eax, 0xe
jne 0x40bb83
mov eax, edx
shr eax, 1
and eax, 0xffffff01
mov dword [esp + 0x1c], eax
mov eax, edx
shr eax, 2
and eax, 0xffffff01
mov dword [esp + 0x18], eax
mov eax, edx
shr eax, 4
and al, 1
mov byte [esp + 0x74], al
mov eax, edx
mov cl, dl
shr eax, 5
and cl, 1
and eax, 0xffffff01
jmp 0x40bb87
mov eax, dword [esp + 0x78]
and dword [esi + 0x20c], 0
cmp byte [esp + 0x74], 0
je 0x40bb9f
mov dword [esi + 0x20c], 0x10
test al, al
je 0x40bbaa
or dword [esi + 0x20c], 0x20
cmp byte [esp + 0x1c], 0
je 0x40bbb8
or dword [esi + 0x20c], 2
test cl, cl
je 0x40bbc3
or dword [esi + 0x20c], 1
cmp byte [esp + 0x18], 0
je 0x40bbd1
or dword [esi + 0x20c], 4
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x228], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x22c], eax
mov ecx, edx
shr ecx, 0x10
mov ax, cx
shr ax, 9
mov edi, 0x7bc
add ax, di
mov word [esp + 0x80], ax
mov eax, ecx
shr eax, 5
and eax, 0xf
mov word [esp + 0x82], ax
mov ax, dx
shr ax, 0xb
mov word [esp + 0x88], ax
mov eax, edx
shr eax, 5
and eax, 0x3f
mov word [esp + 0x8a], ax
xor eax, eax
mov word [esp + 0x8e], ax
lea eax, [esp + 0x78]
push eax
and edx, 0x1f
lea eax, [esp + 0x84]
and ecx, 0x1f
add edx, edx
push eax
mov word [esp + 0x8e], cx
mov word [esp + 0x94], dx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x94], eax
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x9c]
xor edi, edi
cmp dword [esp + 0x10], 4
mov dword [esi + 0x210], ecx
mov dword [esi + 0x214], eax
mov dword [esi + 0x218], ecx
mov dword [esi + 0x21c], eax
mov dword [esi + 0x220], ecx
mov dword [esi + 0x224], eax
jbe 0x40be03
mov ecx, dword [esp + 0x14]
push 0x42d7f8
mov al, byte [edi + ecx]
mov byte [esp + 0x78], al
mov al, byte [ecx + edi + 1]
mov byte [esp + 0x79], al
movzx eax, byte [ecx + edi + 2]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x7e], 0
call fcn.004110e0
pop ecx
pop ecx
test eax, eax
je 0x40bd21
mov eax, dword [esp + 0x78]
add eax, 4
add edi, eax
lea eax, [edi + 4]
cmp eax, dword [esp + 0x10]
jb 0x40bcd4
jmp 0x40be03
mov edx, dword [esp + 0x14]
add edi, 5
movzx eax, byte [edi + edx - 1]
mov ecx, eax
shr ecx, 1
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 2
and byte [esp + 0x10], 1
and ecx, 0xffffff01
mov dword [esp + 0x78], ecx
test al, 1
je 0x40bd8b
movzx ecx, byte [edi + edx + 3]
movzx eax, byte [edi + edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx]
shl ecx, 8
or ecx, eax
add edi, 4
call fcn.0040b7fd
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x224], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x220], eax
test cl, cl
je 0x40bdc5
movzx ecx, byte [edi + edx + 3]
movzx eax, byte [edi + edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx]
shl ecx, 8
or ecx, eax
add edi, 4
call fcn.0040b7fd
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
cmp byte [esp + 0x10], 0
je 0x40be03
mov edx, dword [esp + 0x14]
movzx ecx, byte [edi + edx + 3]
movzx eax, byte [edi + edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + edx]
shl ecx, 8
or ecx, eax
call fcn.0040b7fd
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40be12
push eax
call fcn.0040df64
pop ecx
push 0x230
lea eax, [ebx + 8]
push esi
push eax
call fcn.0040d280
mov eax, dword [ebp + 8]
mov dword [ebx + 0x238], eax
jmp 0x40b956
mov eax, 0x10000
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d1d5
mov esp, ebp
pop ebp
ret 8