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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
xor eax, eax
push esi
push edi
cmp dword [ebp + 0xc], eax
je 0x410222
cmp dword [ebp + 0x10], 4
jle 0x410222
mov esi, dword [ebp + 0x14]
cmp esi, eax
jne 0x4103e1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp - 0xc]
sub eax, edi
cmp eax, 4
jb 0x410222
mov ecx, dword [ebp + 0xc]
add edi, ecx
movzx edx, word [edi + 2]
movzx ebx, dx
cmp eax, ebx
mov dword [ebp - 8], edi
jl 0x410222
movzx ecx, word [edi]
cmp cx, 1
jne 0x4103ae
cmp dword [esi + 0x24], 0
mov eax, dword [esi + 0x20]
jg 0x4103d6
jl 0x410270
cmp eax, 0xffffffff
ja 0x4103d6
cmp dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
jg 0x4103d6
jl 0x410288
cmp eax, 0xffffffff
ja 0x4103d6
mov ecx, dword [esi + 0x74]
or dword [ebp - 0x18], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], ebx
movzx ebx, word [esi + 0x84]
movzx eax, bx
mov dword [ebp - 8], eax
lea eax, [edi + 4]
test ecx, ecx
je 0x4102b0
cmp dword [esi + 0x7c], 0xffffffff
jne 0x4102d4
cmp dword [ebp - 4], 8
jl 0x4102d4
cmp dword [esi + 0x20], 0xffffffff
jne 0x4102cd
cmp dword [esi + 0x24], 0
jne 0x4102cd
mov edx, dword [eax]
mov dword [esi + 0x20], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x24], edx
add eax, 8
sub dword [ebp - 4], 8
test ecx, ecx
je 0x4102de
cmp dword [esi + 0x78], 0xffffffff
jne 0x410302
cmp dword [ebp - 4], 8
jl 0x410302
cmp dword [esi + 0x18], 0xffffffff
jne 0x4102fb
cmp dword [esi + 0x1c], 0
jne 0x4102fb
mov edx, dword [eax]
mov dword [esi + 0x18], edx
mov edx, dword [eax + 4]
mov dword [esi + 0x1c], edx
add eax, 8
sub dword [ebp - 4], 8
test ecx, ecx
je 0x41030f
cmp dword [esi + 0x80], 0xffffffff
jne 0x410327
cmp dword [ebp - 4], 8
jl 0x410327
mov edx, dword [eax]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 4]
add eax, 8
sub dword [ebp - 4], 8
mov dword [ebp - 0x14], edx
xor edx, edx
cmp ecx, edx
je 0x410337
mov ecx, 0xffff
cmp bx, cx
jne 0x410342
cmp dword [ebp - 4], 4
jne 0x410342
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x410375
mov eax, dword [ebp + 8]
add eax, 0x350
cmp dword [eax], edx
je 0x410365
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x410367
xor eax, eax
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
jmp 0x4103d6
cmp dword [ebp - 8], 0xffff
jle 0x4103d6
mov eax, dword [ebp + 8]
add eax, 0x350
xor edx, edx
cmp dword [eax], edx
je 0x410398
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x41039a
xor eax, eax
mov ecx, dword [esi + 0x80]
xor ebx, ebx
add ecx, eax
adc ebx, edx
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], ebx
jmp 0x4103d6
cmp cx, 0xa
jne 0x4103f5
cmp dx, 0x20
jb 0x4103d6
cmp word [edi + 0xa], 0x18
jne 0x4103d6
lea eax, [edi + 0x14]
lea ebx, [edi + 0x1c]
push eax
add edi, 0xc
call fcn.0040f694
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp - 8]
movzx eax, word [edi + 2]
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + eax + 4]
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0xc], eax
jg 0x41022b
xor eax, eax
inc eax
jmp 0x410224
mov edx, 0x7075
cmp cx, dx
jne 0x410483
movzx eax, word [edi + 2]
cmp ax, 0xa
jb 0x4103d6
cmp dword [esi + 0x3c], 0
je 0x410419
test byte [esi + 0x71], 8
jne 0x4103d6
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
add ebx, 0xfffffffb
lea edi, [ebx + 1]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.CArkAutoByte.0
call fcn.004114dd
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x410468
mov esi, dword [ebp - 8]
push ebx
lea eax, [esi + 9]
push eax
push edi
call fcn.004227e0
mov ebx, dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebx], 0
je 0x410468
mov eax, dword [ebx + 0x88]
cmp eax, dword [esi + 5]
jne 0x410468
mov ecx, edi
call fcn.0040f583
mov dword [ebp - 0x24], vtable.CArkAutoPtr_unsigned_char_.0
test edi, edi
je 0x4103d0
push edi
call fcn.0041f805
pop ecx
jmp 0x4103d0
mov edx, 0xe57a
cmp cx, dx
je 0x4103d6
mov edx, 0x9901
cmp cx, dx
jne 0x4104e2
cmp eax, 0xb
jb 0x410222
mov al, byte [edi + 8]
cmp al, 1
jne 0x4104b4
mov dword [esi + 0x28], 2
jmp 0x4104cc
cmp al, 2
jne 0x4104c1
mov dword [esi + 0x28], 3
jmp 0x4104cc
cmp al, 3
jne 0x4104cc
mov dword [esi + 0x28], 4
cmp dword [esi + 0x34], 0x63
jne 0x4103d6
movzx eax, word [edi + 9]
mov dword [esi + 0x34], eax
jmp 0x4103d6
cmp cx, 0x17
jne 0x4105cd
cmp dword [esi + 0x28], 0
je 0x4103ed
movzx ecx, word [edi + 6]
mov eax, 0x660f
cmp ecx, eax
jg 0x410565
je 0x410559
sub ecx, 0x6601
je 0x41054d
dec ecx
je 0x410541
dec ecx
je 0x410535
sub ecx, 6
je 0x410529
sub ecx, 5
jne 0x410585
mov dword [esi + 0x28], 0x106
jmp 0x4103d6
mov dword [esi + 0x28], 0x105
jmp 0x4103d6
mov dword [esi + 0x28], 0x104
jmp 0x4103d6
mov dword [esi + 0x28], 0x103
jmp 0x4103d6
mov dword [esi + 0x28], 0x102
jmp 0x4103d6
mov dword [esi + 0x28], 0x107
jmp 0x4103d6
sub ecx, 0x6610
je 0x4105c1
sub ecx, 0xf2
je 0x4105b5
sub ecx, 0x1e
je 0x4105a9
dec ecx
je 0x41059d
sub ecx, 0xe0
je 0x410591
mov dword [esi + 0x28], 0x10d
jmp 0x4103d6
mov dword [esi + 0x28], 0x10c
jmp 0x4103d6
mov dword [esi + 0x28], 0x10b
jmp 0x4103d6
mov dword [esi + 0x28], 0x10a
jmp 0x4103d6
mov dword [esi + 0x28], 0x109
jmp 0x4103d6
mov dword [esi + 0x28], 0x108
jmp 0x4103d6
mov edx, 0x5855
cmp cx, dx
je 0x4103d6
mov edx, 0x5455
cmp cx, dx
je 0x4103d6
mov edx, 0x7875
cmp cx, dx
jne 0x41061c
lea ecx, [edi + 4]
mov dl, byte [ecx]
inc ecx
cmp dl, 1
jne 0x4103d6
movzx edx, byte [ecx]
movzx ecx, byte [edx + ecx + 1]
sub eax, ecx
sub eax, edx
sub eax, 7
js 0x410222
jmp 0x4103d6
cmp cx, 0x64
jne 0x4103d6
movzx eax, word [edi + 2]
cmp ax, 8
jne 0x4103d6
movzx eax, word [edi + 4]
movzx ebx, word [edi + 6]
push 1
cdq
push 0
push edx
push eax
call fcn.00428580
add dword [esi + 0x18], eax
movzx eax, bx
adc dword [esi + 0x1c], edx
push 1
cdq
push 0
push edx
push eax
call fcn.00428580
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
jmp 0x4103d6