Function at 0x40b91e
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 0x40be5b
mov ecx, dword [ebx]
cmp edi, dword [ecx + 4]
jge 0x40be5b
cmp dword [ebx + 4], 0xffffffff
je 0x40b962
call fcn.0040b7c6
or dword [ebx + 4], 0xffffffff
cmp edi, dword [ebx + 0x238]
jne 0x40b98c
cmp edi, 0xffffffff
je 0x40b991
push 0x230
lea eax, [ebx + 8]
push eax
push esi
call fcn.0040d2b0
add esp, 0xc
xor eax, eax
jmp 0x40be60
cmp edi, 0xffffffff
jne 0x40b9d6
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 0x40b985
mov ecx, dword [ebx]
cmp edi, dword [ecx + 0x10]
jge 0x40b9e9
call fcn.0040b146
jmp 0x40b9e9
call fcn.0040b17d
mov eax, dword [ebx]
mov ecx, eax
cmp dword [eax + 0x10], edi
jl 0x40b9e4
sub esp, 0x10
lea eax, [esp + 0xb0]
push 0x104
push eax
push 0
lea edx, [esp + 0x3c]
call fcn.0040af47
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.0040b296
pop ecx
pop ecx
test eax, eax
je 0x40ba38
mov eax, 0x700
jmp 0x40be60
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov ecx, dword [ecx]
push 0
call fcn.0040aa78
pop ecx
test eax, eax
je 0x40ba56
mov eax, 0x800
jmp 0x40be60
push dword [esp + 0x10]
call fcn.0040c956
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.0040aae3
pop ecx
pop ecx
cmp eax, dword [esp + 0x10]
je 0x40ba89
push edi
call fcn.0040df94
pop ecx
jmp 0x40ba4c
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 0x40bacf
cmp word [edi + 2], 0x3a
jne 0x40bacf
add edi, 4
jmp 0x40babb
cmp eax, 0x5c
je 0x40bad9
cmp eax, 0x2f
jne 0x40bade
add edi, 2
jmp 0x40babb
push 0x42d870
push edi
call fcn.004101bc
pop ecx
pop ecx
test eax, eax
jne 0x40bb22
push 0x42d87c
push edi
call fcn.004101bc
pop ecx
pop ecx
test eax, eax
jne 0x40bb22
push 0x42d888
push edi
call fcn.004101bc
pop ecx
pop ecx
test eax, eax
jne 0x40bb22
push 0x42d894
push edi
call fcn.004101bc
pop ecx
pop ecx
test eax, eax
je 0x40bb27
lea edi, [eax + 8]
jmp 0x40babb
lea eax, [esi + 4]
push edi
push eax
call fcn.004112c7
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 0x40bb78
cmp eax, 7
je 0x40bb78
cmp eax, 0xb
je 0x40bb78
cmp eax, 0xe
jne 0x40bbaf
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 0x40bbb3
mov eax, dword [esp + 0x78]
and dword [esi + 0x20c], 0
cmp byte [esp + 0x74], 0
je 0x40bbcb
mov dword [esi + 0x20c], 0x10
test al, al
je 0x40bbd6
or dword [esi + 0x20c], 0x20
cmp byte [esp + 0x1c], 0
je 0x40bbe4
or dword [esi + 0x20c], 2
test cl, cl
je 0x40bbef
or dword [esi + 0x20c], 1
cmp byte [esp + 0x18], 0
je 0x40bbfd
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 0x40be2f
mov ecx, dword [esp + 0x14]
push 0x42d8a0
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.00411110
pop ecx
pop ecx
test eax, eax
je 0x40bd4d
mov eax, dword [esp + 0x78]
add eax, 4
add edi, eax
lea eax, [edi + 4]
cmp eax, dword [esp + 0x10]
jb 0x40bd00
jmp 0x40be2f
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 0x40bdb7
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.0040b829
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x224], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x220], eax
test cl, cl
je 0x40bdf1
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.0040b829
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], edx
cmp byte [esp + 0x10], 0
je 0x40be2f
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.0040b829
mov dword [esi + 0x218], eax
mov dword [esi + 0x21c], edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40be3e
push eax
call fcn.0040df94
pop ecx
push 0x230
lea eax, [ebx + 8]
push esi
push eax
call fcn.0040d2b0
mov eax, dword [ebp + 8]
mov dword [ebx + 0x238], eax
jmp 0x40b982
mov eax, 0x10000
mov ecx, dword [esp + 0x3b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040d205
mov esp, ebp
pop ebp
ret 8