Function at 0x41022b
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 0x41024c
cmp dword [ebp + 0x10], 4
jle 0x41024c
mov esi, dword [ebp + 0x14]
cmp esi, eax
jne 0x41040b
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 0x41024c
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 0x41024c
movzx ecx, word [edi]
cmp cx, 1
jne 0x4103d8
cmp dword [esi + 0x24], 0
mov eax, dword [esi + 0x20]
jg 0x410400
jl 0x41029a
cmp eax, 0xffffffff
ja 0x410400
cmp dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
jg 0x410400
jl 0x4102b2
cmp eax, 0xffffffff
ja 0x410400
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 0x4102da
cmp dword [esi + 0x7c], 0xffffffff
jne 0x4102fe
cmp dword [ebp - 4], 8
jl 0x4102fe
cmp dword [esi + 0x20], 0xffffffff
jne 0x4102f7
cmp dword [esi + 0x24], 0
jne 0x4102f7
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 0x410308
cmp dword [esi + 0x78], 0xffffffff
jne 0x41032c
cmp dword [ebp - 4], 8
jl 0x41032c
cmp dword [esi + 0x18], 0xffffffff
jne 0x410325
cmp dword [esi + 0x1c], 0
jne 0x410325
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 0x410339
cmp dword [esi + 0x80], 0xffffffff
jne 0x410351
cmp dword [ebp - 4], 8
jl 0x410351
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 0x410361
mov ecx, 0xffff
cmp bx, cx
jne 0x41036c
cmp dword [ebp - 4], 4
jne 0x41036c
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x41039f
mov eax, dword [ebp + 8]
add eax, 0x350
cmp dword [eax], edx
je 0x41038f
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x410391
xor eax, eax
add eax, dword [ebp - 0x18]
adc edx, dword [ebp - 0x14]
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
jmp 0x410400
cmp dword [ebp - 8], 0xffff
jle 0x410400
mov eax, dword [ebp + 8]
add eax, 0x350
xor edx, edx
cmp dword [eax], edx
je 0x4103c2
mov ecx, dword [eax]
push dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x54]
jmp 0x4103c4
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 0x410400
cmp cx, 0xa
jne 0x41041f
cmp dx, 0x20
jb 0x410400
cmp word [edi + 0xa], 0x18
jne 0x410400
lea eax, [edi + 0x14]
lea ebx, [edi + 0x1c]
push eax
add edi, 0xc
call fcn.0040f6be
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 0x410255
xor eax, eax
inc eax
jmp 0x41024e
mov edx, 0x7075
cmp cx, dx
jne 0x4104ad
movzx eax, word [edi + 2]
cmp ax, 0xa
jb 0x410400
cmp dword [esi + 0x3c], 0
je 0x410443
test byte [esi + 0x71], 8
jne 0x410400
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.0041150b
mov edi, dword [ebp - 0x20]
test eax, eax
je 0x410492
mov esi, dword [ebp - 8]
push ebx
lea eax, [esi + 9]
push eax
push edi
call fcn.00422db0
mov ebx, dword [ebp + 0x14]
add esp, 0xc
cmp dword [ebx], 0
je 0x410492
mov eax, dword [ebx + 0x88]
cmp eax, dword [esi + 5]
jne 0x410492
mov ecx, edi
call fcn.0040f5ad
mov dword [ebp - 0x24], vtable.CArkAutoPtr_unsigned_char_.0
test edi, edi
je 0x4103fa
push edi
call fcn.0041fde1
pop ecx
jmp 0x4103fa
mov edx, 0xe57a
cmp cx, dx
je 0x410400
mov edx, 0x9901
cmp cx, dx
jne 0x41050c
cmp eax, 0xb
jb 0x41024c
mov al, byte [edi + 8]
cmp al, 1
jne 0x4104de
mov dword [esi + 0x28], 2
jmp 0x4104f6
cmp al, 2
jne 0x4104eb
mov dword [esi + 0x28], 3
jmp 0x4104f6
cmp al, 3
jne 0x4104f6
mov dword [esi + 0x28], 4
cmp dword [esi + 0x34], 0x63
jne 0x410400
movzx eax, word [edi + 9]
mov dword [esi + 0x34], eax
jmp 0x410400
cmp cx, 0x17
jne 0x4105f7
cmp dword [esi + 0x28], 0
je 0x410417
movzx ecx, word [edi + 6]
mov eax, 0x660f
cmp ecx, eax
jg 0x41058f
je 0x410583
sub ecx, 0x6601
je 0x410577
dec ecx
je 0x41056b
dec ecx
je 0x41055f
sub ecx, 6
je 0x410553
sub ecx, 5
jne 0x4105af
mov dword [esi + 0x28], 0x106
jmp 0x410400
mov dword [esi + 0x28], 0x105
jmp 0x410400
mov dword [esi + 0x28], 0x104
jmp 0x410400
mov dword [esi + 0x28], 0x103
jmp 0x410400
mov dword [esi + 0x28], 0x102
jmp 0x410400
mov dword [esi + 0x28], 0x107
jmp 0x410400
sub ecx, 0x6610
je 0x4105eb
sub ecx, 0xf2
je 0x4105df
sub ecx, 0x1e
je 0x4105d3
dec ecx
je 0x4105c7
sub ecx, 0xe0
je 0x4105bb
mov dword [esi + 0x28], 0x10d
jmp 0x410400
mov dword [esi + 0x28], 0x10c
jmp 0x410400
mov dword [esi + 0x28], 0x10b
jmp 0x410400
mov dword [esi + 0x28], 0x10a
jmp 0x410400
mov dword [esi + 0x28], 0x109
jmp 0x410400
mov dword [esi + 0x28], 0x108
jmp 0x410400
mov edx, 0x5855
cmp cx, dx
je 0x410400
mov edx, 0x5455
cmp cx, dx
je 0x410400
mov edx, 0x7875
cmp cx, dx
jne 0x410646
lea ecx, [edi + 4]
mov dl, byte [ecx]
inc ecx
cmp dl, 1
jne 0x410400
movzx edx, byte [ecx]
movzx ecx, byte [edx + ecx + 1]
sub eax, ecx
sub eax, edx
sub eax, 7
js 0x41024c
jmp 0x410400
cmp cx, 0x64
jne 0x410400
movzx eax, word [edi + 2]
cmp ax, 8
jne 0x410400
movzx eax, word [edi + 4]
movzx ebx, word [edi + 6]
push 1
cdq
push 0
push edx
push eax
call fcn.00428b50
add dword [esi + 0x18], eax
movzx eax, bx
adc dword [esi + 0x1c], edx
push 1
cdq
push 0
push edx
push eax
call fcn.00428b50
add dword [esi + 0x20], eax
adc dword [esi + 0x24], edx
jmp 0x410400