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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x109c
call fcn.004ebaf0
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov edx, dword [ebp + 8]
mov dword [esp + 0x10], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
push ebx
push esi
push edi
test ecx, ecx
jne 0x40925d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x409cf5
mov dword [eax], 0x63
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x409268
mov dword [ecx], eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x40927b
mov esi, 0x10
mov edx, esi
jmp 0x409cc4
mov esi, dword [ebp + 0xc]
mov edi, 0x50a478
mov dword [ecx], eax
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
cmovne edi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], edi
lea ecx, [edi + 0x100]
mov dword [esp + 0x34], ecx
lea ecx, [edi + 0x200]
mov dword [esp + 0x38], ecx
lea ecx, [edi + 0x340]
mov dword [esp + 0x3c], ecx
test esi, 0xd8038580
je 0x4092c5
mov esi, 0x11
jmp 0x409cab
cmp word [edx], 0x28
jne 0x409679
mov ebx, 4
lea edi, [edx + 4]
nop word [eax + eax]
cmp word [edx + eax*2 + 2], 0x2a
jne 0x409672
mov ecx, 6
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], str.UTF16_
nop dword [eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x40933f
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409300
add eax, 8
add ebx, 0x10
add edi, 0x10
or esi, 0x800
jmp 0x40965c
mov esi, dword [ebp + 8]
mov ecx, 4
add esi, ebx
mov dword [esp + 0x10], str.UCP_
mov dword [esp + 0x14], esi
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x409397
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409355
mov esi, dword [ebp + 0xc]
add eax, 6
add ebx, 0xc
add edi, 0xc
or esi, 0x20000000
jmp 0x40965c
mov ecx, 0xd
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.NO_START_OPT_
nop dword [eax + eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4093f2
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4093b0
mov esi, dword [ebp + 0xc]
add eax, 0xf
add ebx, 0x1e
add edi, 0x1e
or esi, 0x4000000
jmp 0x40965c
mov ecx, 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x508c00
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x40944c
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409403
mov esi, dword [ebp + 0xc]
mov ecx, 0x100000
and esi, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or esi, ecx
jmp 0x40965c
mov ecx, 3
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], 0x508c04
nop dword [eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4094a9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409460
mov esi, dword [ebp + 0xc]
mov ecx, 0x200000
and esi, 0xff8fffff
add eax, 5
add ebx, 0xa
add edi, 0xa
or esi, ecx
jmp 0x40965c
mov ecx, 5
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.CRLF_
nop word [eax + eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x409509
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4094c0
mov esi, dword [ebp + 0xc]
mov ecx, 0x300000
and esi, 0xff8fffff
add eax, 7
add ebx, 0xe
add edi, 0xe
or esi, ecx
jmp 0x40965c
mov ecx, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.ANY_
nop word [eax + eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x409569
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409520
mov esi, dword [ebp + 0xc]
mov ecx, 0x400000
and esi, 0xff8fffff
add eax, 6
add ebx, 0xc
add edi, 0xc
or esi, ecx
jmp 0x40965c
mov ecx, 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.ANYCRLF_
nop word [eax + eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x4095c9
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409580
mov esi, dword [ebp + 0xc]
mov ecx, 0x500000
and esi, 0xff8fffff
add eax, 0xa
add ebx, 0x14
add edi, 0x14
or esi, ecx
jmp 0x40965c
mov ecx, 0xc
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], str.BSR_ANYCRLF_
nop word [eax + eax]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
movzx edx, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x409612
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4095e0
mov ecx, 0x800000
jmp 0x409648
mov ecx, 0xc
mov dword [esp + 0x10], str.BSR_UNICODE_
nop
movzx edx, word [esi]
lea esi, [esi + 2]
dec ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
inc dword [esp + 0x10]
movzx ecx, byte [ecx]
cmp dx, cx
jne 0x40966f
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x409620
mov ecx, 0x1000000
mov esi, dword [ebp + 0xc]
add edi, 0x1c
and esi, 0xfe7fffff
add ebx, 0x1c
or esi, ecx
add eax, 0xe
mov edx, dword [ebp + 8]
mov dword [ebp + 0xc], esi
cmp word [edx + eax*2], 0x28
je 0x4092e0
jmp 0x409672
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [esp + 0x28]
mov ecx, esi
and ecx, 0x1800000
cmp ecx, 0x1800000
je 0x409ca6
mov ecx, esi
and ecx, 0x700000
cmp ecx, 0x300000
ja 0x409706
je 0x4096e3
test ecx, ecx
je 0x40971a
cmp ecx, 0x100000
je 0x4096be
cmp ecx, 0x200000
jne 0x409ca6
mov ecx, 0xa
jmp 0x4096c3
mov ecx, 0xd
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 1
mov word [esp + 0x98], cx
jmp 0x409732
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 2
mov dword [esp + 0x98], 0xa000d
jmp 0x409732
cmp ecx, 0x400000
je 0x409727
cmp ecx, 0x500000
jne 0x409ca6
mov dword [esp + 0x90], 2
jmp 0x409732
mov dword [esp + 0x90], 1
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x40], ecx
mov ecx, edx
mov dword [esp + 0x48], edx
xor edx, edx
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0x800
cmp word [ebx], dx
je 0x40979f
lea ecx, [ecx + 2]
inc edx
cmp word [ecx], 0
jne 0x409795
lea eax, [ebx + eax*2]
mov dword [esp + 0x84], 0
mov dword [esp + 0x2c], eax
lea ecx, [ebx + edx*2]
mov dword [esp + 0x20], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0xa8]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x10], eax
mov ecx, esi
mov eax, 0x7d
mov dword [esp + 0x78], 0
mov word [esp + 0xa8], ax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x80], esi
push eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x8c], 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x60], 0
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00408a50
mov esi, dword [esp + 0x50]
add esp, 0x2c
test esi, esi
jne 0x409cab
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x10000
jle 0x40984e
mov esi, 0x14
jmp 0x409cab
mov eax, dword [esp + 0x60]
imul eax, dword [esp + 0x5c]
add eax, ecx
lea esi, [eax*2 + 0x28]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x409878
lea esi, [eax + 0x15]
jmp 0x409cab
mov dword [ebx], 0x50435245
mov dword [ebx + 4], esi
mov eax, dword [esp + 0x7c]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x80]
mov word [ebx + 0xc], ax
xor eax, eax
mov word [ebx + 0xe], ax
mov dword [ebx + 0x14], eax
mov eax, 0x14
mov word [ebx + 0x18], ax
movzx eax, word [esp + 0x60]
mov word [ebx + 0x1a], ax
movzx eax, word [esp + 0x5c]
mov word [ebx + 0x1c], ax
xor eax, eax
mov word [ebx + 0x1e], ax
cmp edi, 0x50a478
mov dword [ebx + 0x24], eax
cmove edi, eax
mov dword [ebx + 0x20], edi
mov eax, dword [esp + 0x68]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x5c], 0
movzx eax, word [ebx + 0x18]
push 0
lea edx, [ebx + eax*2]
mov dword [esp + 0x5c], edx
movzx eax, word [ebx + 0x1a]
movzx ecx, word [ebx + 0x1c]
imul ecx, eax
mov eax, dword [esp + 0x44]
lea edi, [edx + ecx*2]
mov dword [esp + 0x58], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov eax, 0x7d
mov dword [esp + 0x48], edi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x54], 0
mov word [edi], ax
lea eax, [esp + 0x34]
push eax
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x1c]
push 0
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x38], edi
push eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
mov dword [esp + 0x34], edi
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00408a50
movzx eax, word [esp + 0x94]
or ecx, 0xffffffff
mov esi, dword [esp + 0x50]
add esp, 0x2c
mov word [ebx + 0x10], ax
movzx eax, word [esp + 0x70]
mov word [ebx + 0x12], ax
mov eax, dword [esp + 0x80]
or eax, 2
mov word [ebx + 0xc], ax
cmp dword [esp + 0x88], 0
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov dword [esp + 0xa4], eax
test esi, esi
jne 0x4099da
mov eax, dword [esp + 0x20]
mov ecx, 0x16
cmp word [eax], si
cmovne esi, ecx
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax], cx
sub eax, edi
add eax, 2
mov ecx, 0x17
sar eax, 1
cmp eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
cmovg esi, ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x1c], esi
cmp eax, ecx
jbe 0x409a74
xor edx, edx
mov dword [esp + 0x14], 0xffffffff
test esi, esi
jne 0x409a74
cmp eax, ecx
jbe 0x409a74
sub eax, 2
mov dword [esp + 0x54], eax
movzx eax, word [eax]
lea eax, [edi + eax*2]
mov dword [esp + 0x10], eax
movzx eax, word [eax]
cmp eax, dword [esp + 0x14]
je 0x409a50
push eax
mov ecx, edi
call fcn.00402980
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x10]
movzx ecx, word [eax]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x40]
jmp 0x409a54
mov eax, dword [esp + 0x10]
test edx, edx
je 0x409a6b
mov ecx, edx
sub ecx, edi
sar ecx, 1
mov word [eax], cx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x40]
jmp 0x409a14
mov esi, 0x35
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x64], 0x800
jle 0x409a88
push ecx
call dword [0x526b54]
add esp, 4
test esi, esi
jne 0x409aa0
mov ax, word [ebx + 0x12]
mov ecx, 0xf
cmp ax, word [ebx + 0x10]
cmova esi, ecx
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x8c], 0
je 0x409b20
push 0xffffffffffffffff
mov ecx, edi
call fcn.00402980
mov ecx, eax
add esp, 4
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x409b20
cmp word [ecx + 2], 0
jne 0x409b01
movzx eax, word [ecx - 2]
movzx esi, word [ecx + eax*2 - 4]
lea edi, [ecx + eax*2]
xor eax, eax
mov word [edi - 4], ax
lea eax, [esp + 0x30]
mov edx, dword [ebx + 8]
push eax
shr edx, 0xb
push 1
and edx, 1
call fcn.00402660
add esp, 8
mov word [edi - 4], si
test eax, eax
js 0x409b33
mov ecx, dword [esp + 0x14]
mov word [ecx + 2], ax
push 0xffffffffffffffff
add ecx, 4
call fcn.00402980
mov ecx, eax
mov dword [esp + 0x18], eax
add esp, 4
test ecx, ecx
jne 0x409ac0
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x28]
test esi, esi
je 0x409b5c
push ebx
call dword [0x526b54]
add esp, 4
jmp 0x409cab
cmp eax, 0xfffffffe
jne 0x409b4a
push ebx
lea esi, [eax + 0x26]
call dword [0x526b54]
add esp, 4
jmp 0x409cab
cmp eax, 0xfffffffc
mov esi, 0x19
mov ecx, 0x46
cmove esi, ecx
jmp 0x409b1c
mov eax, dword [ebx + 8]
mov esi, 0x80
mov dword [esp + 0x2c], eax
test al, 0x10
jne 0x409b90
mov esi, dword [esp + 0x74]
xor edx, edx
push esi
mov ecx, edi
call fcn.00408e10
add esp, 4
test eax, eax
je 0x409bdd
mov eax, dword [esp + 0x2c]
or eax, 0x10
mov dword [ebx + 8], eax
mov esi, 0x80
mov edx, dword [esp + 0xa4]
test edx, edx
js 0x409c9d
test byte [ebx + 8], 0x10
je 0x409bb1
test edx, 0x20000000
je 0x409c9d
mov word [ebx + 0x16], dx
test edx, 0x10000000
je 0x409c98
movzx ecx, dx
cmp dx, si
jae 0x409c6e
mov eax, dword [esp + 0x34]
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x409c92
mov edx, dword [esp + 0x18]
test edx, edx
jns 0x409c13
xor edx, edx
mov ecx, edi
call fcn.004090b0
mov edx, eax
test edx, edx
jns 0x409c13
push esi
xor edx, edx
mov ecx, edi
call fcn.00408f50
add esp, 4
test eax, eax
je 0x409b8b
mov eax, 0x100
or word [ebx + 0xc], ax
jmp 0x409b8b
mov word [ebx + 0x14], dx
mov esi, 0x80
test edx, 0x10000000
je 0x409c64
movzx ecx, dx
cmp dx, si
jae 0x409c39
mov eax, dword [esp + 0x34]
movzx eax, byte [ecx + eax]
cmp ax, dx
jmp 0x409c5d
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x5172a0]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x50a8c0]
cmp dword [eax*8 + 0x5161c4], 0
je 0x409c64
or word [ebx + 0xc], 0x20
or word [ebx + 0xc], 0x10
jmp 0x409b90
mov eax, ecx
and ecx, 0x7f
shr eax, 7
movzx eax, byte [eax + 0x5172a0]
shl eax, 7
add eax, ecx
movzx eax, word [eax*2 + 0x50a8c0]
cmp dword [eax*8 + 0x5161c4], 0
je 0x409c98
or word [ebx + 0xc], si
or word [ebx + 0xc], 0x40
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x38
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0x18]
sub eax, dword [ebp + 8]
sar eax, 1
mov dword [ecx], eax
mov edx, esi
mov ecx, str.no_error
test edx, edx
jle 0x409ce7
mov ecx, str.no_error
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409cd0
cmp byte [ecx], al
je 0x409ce2
dec edx
test edx, edx
jg 0x409cd0
jmp 0x409ce7
mov ecx, str.Error_text_not_found__please_report_
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x409cf5
mov dword [eax], esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret