Function at 0x41038d
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 0x4103ae
cmp dword [ebp + 0x10], 4
jle 0x4103ae
mov esi, dword [ebp + 0x14]
cmp esi, eax
jne 0x41056d
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 0x4103ae
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 0x4103ae
movzx ecx, word [edi]
cmp cx, 1
jne 0x41053a
cmp dword [esi + 0x24], 0
mov eax, dword [esi + 0x20]
jg 0x410562
jl 0x4103fc
cmp eax, 0xffffffff
ja 0x410562
cmp dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
jg 0x410562
jl 0x410414
cmp eax, 0xffffffff
ja 0x410562
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 0x41043c
cmp dword [esi + 0x7c], 0xffffffff
jne 0x410460
cmp dword [ebp - 4], 8
jl 0x410460
cmp dword [esi + 0x20], 0xffffffff
jne 0x410459
cmp dword [esi + 0x24], 0
jne 0x410459
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 0x41046a
cmp dword [esi + 0x78], 0xffffffff
jne 0x41048e
cmp dword [ebp - 4], 8
jl 0x41048e
cmp dword [esi + 0x18], 0xffffffff
jne 0x410487
cmp dword [esi + 0x1c], 0
jne 0x410487
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 0x41049b
cmp dword [esi + 0x80], 0xffffffff
jne 0x4104b3
cmp dword [ebp - 4], 8
jl 0x4104b3
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 0x4104c3
mov ecx, 0xffff
cmp bx, cx
jne 0x4104ce
cmp dword [ebp - 4], 4
jne 0x4104ce
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x410501
mov eax, dword [ebp + 8]
add eax, 0x350
cmp dword [eax], edx
je 0x4104f1
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x4104f3
xor eax, eax
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
jmp 0x410562
cmp dword [ebp - 8], 0xffff
jle 0x410562
mov eax, dword [ebp + 8]
add eax, 0x350
xor edx, edx
cmp dword [eax], edx
je 0x410524
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x410526
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 0x410562
cmp cx, 0xa
jne 0x410581
cmp dx, 0x20
jb 0x410562
cmp word [edi + 0xa], 0x18
jne 0x410562
lea eax, [edi + 0x14]
lea ebx, [edi + 0x1c]
push eax
add edi, 0xc
call fcn.0040f6e6
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 0x4103b7
xor eax, eax
inc eax
jmp 0x4103b0
mov edx, 0x7075
cmp cx, dx
jne 0x41060f
movzx eax, word [edi + 2]
cmp ax, 0xa
jb 0x410562
cmp dword [esi + 0x3c], 0
je 0x4105a5
test byte [esi + 0x71], 8
jne 0x410562
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.0041165b
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x4105f4
mov esi, dword [ebp - 8]
push ebx
lea eax, [esi + 9]
push eax
push edi
call fcn.004230c0
mov ebx, dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebx], 0
je 0x4105f4
mov eax, dword [ebx + 0x88]
cmp eax, dword [esi + 5]
jne 0x4105f4
mov ecx, edi
call fcn.0040f5d5
mov dword [ebp - 0x24], vtable.CArkAutoPtr_unsigned_char_.0
test edi, edi
je 0x41055c
push edi
call fcn.004200e6
pop ecx
jmp 0x41055c
mov edx, 0xe57a
cmp cx, dx
je 0x410562
mov edx, 0x9901
cmp cx, dx
jne 0x41066e
cmp eax, 0xb
jb 0x4103ae
mov al, byte [edi + 8]
cmp al, 1
jne 0x410640
mov dword [esi + 0x28], 2
jmp 0x410658
cmp al, 2
jne 0x41064d
mov dword [esi + 0x28], 3
jmp 0x410658
cmp al, 3
jne 0x410658
mov dword [esi + 0x28], 4
cmp dword [esi + 0x34], 0x63
jne 0x410562
movzx eax, word [edi + 9]
mov dword [esi + 0x34], eax
jmp 0x410562
cmp cx, 0x17
jne 0x410759
cmp dword [esi + 0x28], 0
je 0x410579
movzx ecx, word [edi + 6]
mov eax, 0x660f
cmp ecx, eax
jg 0x4106f1
je 0x4106e5
sub ecx, 0x6601
je 0x4106d9
dec ecx
je 0x4106cd
dec ecx
je 0x4106c1
sub ecx, 6
je 0x4106b5
sub ecx, 5
jne 0x410711
mov dword [esi + 0x28], 0x106
jmp 0x410562
mov dword [esi + 0x28], 0x105
jmp 0x410562
mov dword [esi + 0x28], 0x104
jmp 0x410562
mov dword [esi + 0x28], 0x103
jmp 0x410562
mov dword [esi + 0x28], 0x102
jmp 0x410562
mov dword [esi + 0x28], 0x107
jmp 0x410562
sub ecx, 0x6610
je 0x41074d
sub ecx, 0xf2
je 0x410741
sub ecx, 0x1e
je 0x410735
dec ecx
je 0x410729
sub ecx, 0xe0
je 0x41071d
mov dword [esi + 0x28], 0x10d
jmp 0x410562
mov dword [esi + 0x28], 0x10c
jmp 0x410562
mov dword [esi + 0x28], 0x10b
jmp 0x410562
mov dword [esi + 0x28], 0x10a
jmp 0x410562
mov dword [esi + 0x28], 0x109
jmp 0x410562
mov dword [esi + 0x28], 0x108
jmp 0x410562
mov edx, 0x5855
cmp cx, dx
je 0x410562
mov edx, 0x5455
cmp cx, dx
je 0x410562
mov edx, 0x7875
cmp cx, dx
jne 0x4107a8
lea ecx, [edi + 4]
mov dl, byte [ecx]
inc ecx
cmp dl, 1
jne 0x410562
movzx edx, byte [ecx]
movzx ecx, byte [edx + ecx + 1]
sub eax, ecx
sub eax, edx
sub eax, 7
js 0x4103ae
jmp 0x410562
cmp cx, 0x64
jne 0x410562
movzx eax, word [edi + 2]
cmp ax, 8
jne 0x410562
movzx eax, word [edi + 4]
movzx ebx, word [edi + 6]
push 1
cdq
push 0
push edx
push eax
call fcn.00428e60
add dword [esi + 0x18], eax
movzx eax, bx
adc dword [esi + 0x1c], edx
push 1
cdq
push 0
push edx
push eax
call fcn.00428e60
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
jmp 0x410562