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

Disassembly:
sub esp, 0x94
push ebx
push ebp
mov ebp, ecx
push esi
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x411b91
mov edx, dword [ebp + 0x28]
mov eax, dword [edx + 0xca8]
test eax, eax
je 0x411b89
cmp eax, ecx
jne 0x411b89
mov eax, dword [eax + 0x10]
mov esi, dword [ecx + 0x10]
cmp eax, esi
jne 0x411b89
mov eax, dword [ebp + 0xe4]
test ah, 0x10
jne 0x411b89
mov eax, dword [edx + 0xcc8]
test eax, eax
je 0x411b89
mov eax, 1
jmp 0x411b8b
xor eax, eax
mov dword [ebp + 0x180], eax
mov ecx, dword [esp + 0xa4]
lea ebx, [ebp + 0x188]
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], ebx
call fcn.00409d10
mov ecx, ebp
call fcn.00410440
mov edx, dword [ebp + 0xe4]
shr edx, 8
test dl, 1
jne 0x411c06
lea eax, [ebp + 0xb4]
push eax
call fcn.00417310
add esp, 4
test eax, eax
jne 0x411be5
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xc]
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x411c06
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax + 8]
push edx
mov edx, dword [eax]
push ecx
push edx
mov ecx, ebx
call fcn.004651e0
mov eax, dword [ebp + 0xe4]
test eax, 0x80800
je 0x411cab
lea ecx, [ebp + 0xfc]
shr eax, 8
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 8]
test al, 1
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
jne 0x411c58
lea edx, [esp + 0x38]
lea eax, [esp + 0x38]
push edx
lea ecx, [ebp + 0xb4]
push eax
push ecx
call fcn.00416be0
add esp, 0xc
mov eax, dword [ebp + 0xe4]
xor ecx, ecx
mov edx, eax
and edx, 0x80000
cmp edx, 0x80000
sete cl
and eax, 0x800
xor edx, edx
cmp eax, 0x800
mov eax, dword [ebp + 0xb0]
sete dl
push ecx
mov ecx, dword [ebp + 0xac]
push edx
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x4c]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0040a2b0
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x411ced
mov eax, dword [ebp + 0xe4]
shr eax, 8
test al, 1
je 0x411cca
mov ecx, ebp
call fcn.00411390
test eax, eax
je 0x411ced
mov ecx, dword [ebp + 0xf8]
mov edx, dword [ebp + 0xf0]
mov eax, dword [ebp + 0xf4]
push ecx
mov ecx, dword [ebp + 0xec]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004651e0
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
or esi, 0xffffffff
cmp ecx, eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x70], esi
jne 0x411d1a
lea edx, [esp + 0x70]
lea ecx, [esp + 0x80]
push edx
push ecx
push eax
mov ecx, ebp
call fcn.00410310
mov edx, dword [ebp + 0xf4]
mov ecx, ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
call fcn.0040b880
cmp dword [ebp + 0x110], eax
jle 0x411d49
mov dword [ebp + 0x110], eax
mov eax, dword [ebp + 0x110]
push 0
push eax
mov ecx, ebp
call fcn.004103c0
mov ecx, dword [ebp]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x5c], ecx
cmp ecx, eax
jl 0x411d6f
mov dword [esp + 0x5c], eax
cmp ecx, eax
mov dword [esp + 0x30], ecx
jg 0x411d7b
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x120]
push edi
mov edi, dword [ebp + 0x110]
cmp edi, eax
mov dword [esp + 0x1c], edi
jge 0x41241d
jmp 0x411d9a
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x11c]
lea edx, [esp + 0x90]
push edx
push edi
mov ebx, dword [ecx + edi*4]
mov ecx, ebp
mov dword [esp + 0x28], ebx
call fcn.004119e0
mov esi, dword [ebx + 0x1c]
test esi, esi
mov dword [esp + 0x38], esi
je 0x411dde
mov ecx, dword [ebx + 4]
lea eax, [esi + esi*2]
mov ax, word [ecx + eax*2 - 6]
cmp ax, 0xa
je 0x411dd9
cmp ax, 0xd
jne 0x411dde
dec esi
mov dword [esp + 0x38], esi
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x98]
mov ecx, dword [ebp + 0xf8]
add eax, edx
add eax, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x80], eax
jle 0x411e0f
cmp edi, dword [ebp + 0x110]
jg 0x4123aa
xor eax, eax
mov dword [esp + 0x54], 0xffffffff
cmp esi, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], eax
jle 0x4122b2
jmp 0x411e3b
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], 0xffffffff
jge 0x4122b2
mov ecx, dword [esp + 0x28]
mov ebx, dword [ebx + 4]
add ecx, eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x14], ecx
mov edx, ecx
lea ecx, [eax + eax*2]
shl ecx, 1
mov dword [esp + 0x2c], ecx
add ecx, ebx
cmp word [ecx], 9
jne 0x411e8e
test byte [ebp + 0xe4], 0x10
jne 0x411e8e
cmp edi, 2
je 0x411ee1
mov edi, 1
jmp 0x411e98
cmp edi, 1
je 0x411ee1
mov edi, 2
xor ebx, ebx
mov dword [esp + 0x30], edi
mov bx, word [ecx + 2]
cmp ebx, dword [esp + 0x54]
jne 0x411fd5
mov ebx, dword [ebp]
cmp ebx, dword [ebp + 4]
je 0x411ed8
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x411ec6
cmp edx, dword [esp + 0x60]
je 0x411ff0
mov ebx, dword [esp + 0x70]
test ebx, ebx
jne 0x411ed8
cmp edx, dword [esp + 0x34]
je 0x412001
inc eax
add ecx, 6
inc edx
cmp eax, esi
jl 0x411e73
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x58]
cmp ecx, eax
je 0x412291
mov edi, dword [esp + 0x1c]
push 0
mov eax, ecx
push 0
push eax
push edi
mov ecx, ebp
call fcn.00411530
mov esi, dword [esp + 0x18]
push 0
push 0
push esi
push edi
mov ecx, ebp
mov ebx, eax
call fcn.00411530
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x7c], 0
cmp eax, ecx
jl 0x411f46
mov edx, dword [esp + 0x28]
lea eax, [esi + edx]
mov edx, dword [esp + 0x34]
cmp eax, edx
jg 0x411f46
mov dword [esp + 0x7c], 1
mov edi, dword [esp + 0x58]
mov edx, dword [ebp]
mov eax, esi
mov esi, dword [ebp + 4]
sub eax, edi
cmp edx, esi
mov dword [esp + 0x6c], eax
je 0x411f76
cmp dword [esp + 0x14], ecx
jne 0x411f76
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ecx
test byte [ebp + 0xe4], 0x10
je 0x412012
lea edi, [eax + eax*2]
shl edi, 1
push edi
call fcn.004178f0
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x412291
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov ecx, edi
mov edi, dword [edx + 4]
mov edx, eax
mov eax, ecx
add esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jle 0x412023
mov eax, edx
mov word [eax], 0x2a
add eax, 6
dec ecx
jne 0x411fc8
jmp 0x412023
mov esi, dword [esp + 0x50]
lea edx, [eax + eax*2]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov cx, word [esi + edx*2 + 2]
mov dword [esp + 0x24], ecx
jmp 0x411ee5
mov dword [esp + 0x18], eax
mov dword [esp + 0x78], 1
jmp 0x411ee5
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 1
jmp 0x411ee5
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add eax, dword [ecx + 4]
mov dword [esp + 0x14], eax
mov edx, eax
test edx, edx
je 0x412291
mov eax, dword [esp + 0x54]
mov edi, dword [ebp + 0x160]
mov ecx, ebp
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
shl esi, 2
mov dword [esp + 0x2c], esi
add esi, edi
call fcn.0040f780
push eax
push esi
mov esi, dword [esp + 0x54]
mov ecx, esi
call fcn.00465150
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x41210f
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
add edx, eax
mov eax, dword [esp + 0x34]
cmp edx, eax
jge 0x41208c
mov ecx, dword [esp + 0xa0]
mov edi, dword [esp + 0x10]
add ecx, edi
mov dword [esp + 0x80], ecx
jmp 0x412090
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 0x114]
mov ecx, dword [esp + 0x50]
mov edx, ebx
sub ecx, eax
sub edx, eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x3c]
mov dword [esp + 0x48], edx
lea ecx, [esp + 0x3c]
push eax
lea edx, [ebp + 0xec]
push ecx
push edx
mov dword [esp + 0x50], edi
call fcn.00416820
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
add esp, 0xc
mov eax, 0xff000000
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x44]
push ecx
push edx
push eax
mov ecx, esi
call fcn.0040a210
cmp dword [esp + 0x30], 2
jne 0x412155
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x14]
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x98]
push ecx
push edx
jmp 0x41213a
cmp dword [esp + 0x30], 2
jne 0x412151
mov edx, dword [ebp + 0x160]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x10]
mov eax, dword [eax + edx + 0x4c]
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x98]
push ecx
push edx
mov edx, dword [ebp + 0x114]
mov ecx, ebx
add eax, edi
sub ecx, edx
push eax
push ecx
mov ecx, esi
call fcn.00409f00
jmp 0x412155
mov edi, dword [esp + 0x10]
test byte [ebp + 0xe4], 0x10
je 0x41216b
mov edx, dword [esp + 0x14]
push edx
call fcn.00417900
add esp, 4
mov eax, dword [ebp + 0x160]
mov ecx, dword [esp + 0x2c]
add ecx, eax
test byte [ecx + 0x48], 8
je 0x4121b9
mov eax, dword [esp + 0x98]
push 0
cdq
sub eax, edx
mov edx, dword [esp + 0x98]
sar eax, 1
add eax, edx
mov edx, dword [ecx + 0x4c]
mov ecx, dword [ebp + 0x114]
push edx
mov edx, dword [esp + 0x58]
add eax, edi
mov edi, dword [esi]
sub edx, ecx
push eax
push edx
mov edx, ebx
push eax
sub edx, ecx
mov ecx, esi
push edx
call dword [edi + 4]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x412291
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
xor eax, eax
mov ax, word [ecx + 4]
lea edx, [eax + eax*8]
mov eax, dword [ebp + 0x164]
mov ecx, dword [eax + edx*4 + 0x20]
test ecx, ecx
je 0x412291
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x412217
mov ecx, dword [ebp + 0x11c]
mov ecx, dword [ecx + eax*4 - 4]
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x412217
lea edx, [eax + eax*2]
mov eax, dword [ecx + 4]
mov ax, word [eax + edx*2 - 6]
cmp ax, 0xa
je 0x412217
cmp ax, 0xd
jne 0x412291
push 0
push 0x168
mov ecx, ebp
call fcn.004113e0
mov ecx, dword [ebp + 0x114]
sub ebx, ecx
mov ecx, dword [esp + 0x20]
sub ebx, eax
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [esp + 0x88], eax
mov cx, word [edx + 4]
mov word [esp + 0x8c], cx
mov ecx, ebp
call fcn.0040f780
mov ecx, dword [esp + 0x94]
xor edx, edx
cmp eax, 6
mov eax, 0xff000000
setl dl
dec edx
push eax
lea eax, [esp + 0x8c]
and edx, 0x1f8d
push 1
add ecx, edi
push eax
add edx, 0x95
push ecx
push ebx
mov ecx, esi
mov word [esp + 0x9c], dx
call fcn.00409f00
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x41229e
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
cmp eax, edx
jl 0x411e2f
mov ebx, dword [esp + 0x20]
test dword [ebp + 0xe4], 0x10008
jne 0x41236b
mov eax, dword [ebp + 0x180]
test eax, eax
je 0x41236b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x84]
cmp ecx, eax
jne 0x41236b
mov ecx, dword [esp + 0x74]
mov esi, dword [ebp + 0xf0]
mov edi, dword [ebp + 0xec]
push 0
push 0
mov edx, eax
push ecx
push edx
mov ecx, ebp
call fcn.00411530
sub eax, dword [ebp + 0x114]
cmp edi, eax
jle 0x41230e
mov eax, edi
cmp eax, esi
jge 0x412314
mov esi, eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
jne 0x412325
mov eax, dword [ebp + 0x94]
jmp 0x412335
mov ecx, dword [ebp + 0x160]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 0x4c]
mov edi, dword [esp + 0x98]
mov ecx, dword [esp + 0x4c]
push 1
push eax
mov eax, dword [esp + 0x9c]
mov edx, dword [ecx]
add eax, edi
mov edi, dword [esp + 0x18]
add eax, edi
push eax
push esi
push edi
push esi
call dword [edx + 4]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x5c], 1
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebp + 0xf8]
add eax, edx
cmp eax, ecx
mov dword [esp + 0x10], eax
jg 0x4123aa
mov ecx, dword [ebx + 0x1c]
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esi, ecx
mov ecx, dword [ebp + 0x120]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], eax
jl 0x411d96
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x412419
mov eax, dword [ebp + 0x20]
mov byte [ebp + 0x118], 1
test eax, eax
mov byte [esp + 0x24], 0
je 0x4123d6
mov edx, dword [eax]
mov eax, dword [edx + 0x190]
test eax, eax
setne al
mov byte [esp + 0x24], al
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
lea ecx, [ebp + 0x48]
lea eax, [ebp + 0xb4]
push ecx
mov ecx, dword [esp + 0x68]
push ebx
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
push edx
push ebp
call fcn.004648f0
mov eax, dword [ebx]
add esp, 0x1c
mov ecx, ebx
mov byte [ebp + 0x118], 0
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8
mov ebx, dword [esp + 0x4c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8