Function at 0x498020
Capabilities:
Resolve function by parsing pe exports
Validate payment card number using luhn algorithm

Disassembly:
sub esp, 0x64
push edi
xor edi, edi
mov dword [esp + 4], ecx
cmp dword [ecx], edi
jne 0x498037
xor eax, eax
pop edi
add esp, 0x64
ret 0x24
push ebx
push ebp
push esi
xor ebx, ebx
test byte [0x5144a4], 1
mov esi, vtable.CBufferT_int_.0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x48], edi
jne 0x49807e
or dword [0x5144a4], 1
push edi
push str.___:____d_.__
mov ecx, 0x514370
call fcn.00415f80
push 0x4b8940
call fcn.0049f344
add esp, 4
mov ebp, dword [esp + 0x94]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x68], edi
cmp ebp, edi
jne 0x49809d
lea ebp, [esp + 0x64]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x88]
push eax
push 0xffffffffffffffff
push eax
push ecx
mov ecx, 0x514370
call fcn.00411270
mov dword [esp + 0x18], eax
mov dword [esp + 0x94], edi
lea ecx, [ecx]
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x58]
push eax
mov ecx, 0x514370
call fcn.00410fb0
mov esi, eax
mov eax, dword [ebp + 0xc]
cmp eax, edi
jge 0x498125
mov ecx, 8
cmp eax, ecx
jge 0x4980f9
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
cmp eax, edi
jge 0x498106
lea edx, [eax + eax]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], edi
jge 0x49810e
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], 0
mov edi, dword [esi + 8]
test edi, edi
jle 0x4981ae
mov eax, dword [esi + 4]
mov ebx, eax
test eax, eax
jne 0x498141
mov ebx, 0x4bb110
mov eax, dword [ebp + 0xc]
mov esi, eax
cmp esi, 8
jge 0x498150
mov esi, 8
cmp edi, esi
jle 0x49816e
add esi, esi
cmp edi, esi
jle 0x49816e
lea esi, [edi + 0xb]
mov edx, esi
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x49816c
dec edx
or edx, 0xfffffff8
inc edx
sub esi, edx
cmp esi, eax
jle 0x49818c
mov ecx, dword [ebp + 4]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 4]
lea edx, [edi*4]
push edx
lea edx, [ecx + eax*4]
push ebx
push edx
call fcn.004a0130
mov ebx, dword [esp + 0x58]
add esp, 0xc
add dword [ebp + 8], edi
mov ecx, ebp
call fcn.0040ef90
mov esi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], vtable.CBufferT_int_.0
test eax, eax
je 0x4981d0
push eax
call fcn.0049e944
add esp, 4
mov dword [esp + 0x54], vtable.CBufferRefT_int_.0
test esi, esi
je 0x4985d5
mov ecx, ebp
call fcn.0040efa0
mov edi, eax
sub edi, dword [esp + 0x94]
test edi, edi
jle 0x498279
cmp ebx, dword [esp + 0x50]
jl 0x49822b
mov esi, dword [esp + 0x50]
add esi, esi
cmp esi, 8
jge 0x49820e
mov esi, 8
mov ecx, dword [esp + 0x48]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x48]
mov dword [eax + ebx*4], edx
inc ebx
cmp ebx, dword [esp + 0x50]
jl 0x49826d
mov esi, dword [esp + 0x50]
add esi, esi
cmp esi, 8
jge 0x498250
mov esi, 8
mov edx, dword [esp + 0x48]
lea ecx, [esi*4]
push ecx
push edx
call fcn.004a0495
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x48]
mov dword [eax + ebx*4], edi
inc ebx
mov dword [esp + 0x4c], ebx
mov ecx, ebp
call fcn.0040efa0
mov ecx, dword [esp + 0x80]
mov esi, eax
movzx eax, word [ecx + esi*2 + 2]
lea ebx, [ecx + esi*2 + 2]
add eax, 0xffffffdc
mov dword [esp + 0x94], esi
mov edi, 2
cmp eax, 0x57
ja case.0x4982b1.37
movzx edx, byte [eax + 0x4992b0]
jmp dword [edx*4 + 0x4992a0]
push esi
lea ecx, [esp + 0x48]
call fcn.0040e980
push 1
lea ecx, [esp + 0x48]
call fcn.0040e980
add dword [esp + 0x94], edi
mov ebx, dword [esp + 0x4c]
xor edi, edi
jmp 0x4980d0
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp esi, ecx
jl 0x498326
lea eax, [ecx + ecx]
cmp eax, 8
mov dword [esp + 0x14], eax
jge 0x4982ff
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x48]
lea ecx, [eax*4]
push ecx
push edx
call fcn.004a0495
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
jmp 0x49832a
mov eax, dword [esp + 0x48]
mov dword [eax + esi*4], 0xffffffff
movzx edx, word [ebx]
inc esi
cmp esi, ecx
mov dword [esp + 0x28], edx
jl 0x498363
lea ebx, [ecx + ecx]
cmp ebx, 8
jge 0x49834a
mov ebx, 8
lea ecx, [ebx*4]
push ecx
push eax
call fcn.004a0495
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x28]
add dword [esp + 0x94], edi
inc esi
mov dword [eax + esi*4 - 4], edx
mov dword [esp + 0x4c], esi
mov ebx, esi
xor edi, edi
jmp 0x4980d0
mov ecx, ebp
call fcn.004152c0
mov edi, eax
mov eax, dword [esp + 0x80]
lea ecx, [eax + esi*2 + 4]
sub edi, esi
lea eax, [esp + 0x34]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
lea edx, [edi - 3]
push eax
mov dword [esp + 0x38], vtable.CBufferRefT_wchar_t_.0
mov dword [esp + 0x40], edx
call fcn.00411330
mov ebx, eax
mov dword [esp + 0x34], vtable.CBufferRefT_wchar_t_.0
test ebx, ebx
jle 0x4983f5
mov ecx, dword [esp + 0x10]
cmp ebx, dword [ecx + 8]
jg 0x4983f5
push 0xfffffffffffffffe
lea ecx, [esp + 0x48]
call fcn.0040e980
push ebx
lea ecx, [esp + 0x48]
call fcn.0040e980
add dword [esp + 0x94], edi
mov ebx, dword [esp + 0x4c]
xor edi, edi
jmp 0x4980d0
push esi
lea ecx, [esp + 0x48]
call fcn.0040e980
push edi
lea ecx, [esp + 0x48]
call fcn.0040e980
add dword [esp + 0x94], edi
mov ebx, dword [esp + 0x4c]
xor edi, edi
jmp 0x4980d0
xor esi, esi
lea edi, [esi + 1]
mov eax, ebx
movzx ecx, word [eax]
lea edx, [ecx - 0x30]
cmp dx, 9
ja 0x498441
movzx ecx, cx
inc edi
lea edx, [esi + esi*4]
add eax, 2
cmp edi, 3
lea esi, [ecx + edx*2 - 0x30]
jle 0x498422
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + 8]
cmp esi, ecx
jle 0x498470
lea esp, [esp]
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov esi, eax
dec edi
cmp esi, ecx
jg 0x498450
test esi, esi
je 0x498523
cmp edi, 1
jne 0x49851b
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jl 0x4984b5
lea esi, [ecx + ecx]
cmp esi, 8
jge 0x498492
mov esi, 8
mov edx, dword [esp + 0x48]
lea ecx, [esi*4]
push ecx
push edx
call fcn.004a0495
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x50], esi
mov ecx, esi
mov edx, dword [esp + 0x94]
mov esi, dword [esp + 0x48]
mov dword [esi + eax*4], edx
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x4984fa
lea esi, [ecx + ecx]
cmp esi, 8
jge 0x4984d9
mov esi, 8
mov ecx, dword [esp + 0x48]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x48]
add dword [esp + 0x94], edi
inc eax
mov dword [edx + eax*4 - 4], 1
mov dword [esp + 0x4c], eax
mov ebx, eax
xor edi, edi
jmp 0x4980d0
cmp edi, 0x3e8
jne 0x49853a
mov ebx, dword [esp + 0x4c]
mov edi, 2
add dword [esp + 0x94], edi
xor edi, edi
jmp 0x4980d0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
jl 0x498576
lea ebx, [ecx + ecx]
cmp ebx, 8
jge 0x498553
mov ebx, 8
mov ecx, dword [esp + 0x48]
lea eax, [ebx*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x50], ebx
mov ecx, ebx
mov edx, dword [esp + 0x48]
mov dword [edx + eax*4], 0xfffffffe
inc eax
cmp eax, ecx
mov dword [esp + 0x4c], eax
jl 0x4985b8
lea ebx, [ecx + ecx]
cmp ebx, 8
jge 0x498597
mov ebx, 8
mov ecx, dword [esp + 0x48]
lea eax, [ebx*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x50], ebx
mov edx, dword [esp + 0x48]
add dword [esp + 0x94], edi
inc eax
mov dword [edx + eax*4 - 4], esi
mov dword [esp + 0x4c], eax
mov ebx, eax
xor edi, edi
jmp 0x4980d0
mov edi, dword [esp + 0x84]
cmp dword [esp + 0x94], edi
jge 0x498656
mov esi, dword [esp + 0x50]
cmp ebx, esi
jl 0x498616
add esi, esi
cmp esi, 8
jge 0x4985f9
mov esi, 8
mov ecx, dword [esp + 0x48]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
mov ecx, eax
add esp, 8
mov dword [esp + 0x48], ecx
jmp 0x49861a
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x94]
mov dword [ecx + ebx*4], edx
inc ebx
cmp ebx, esi
jl 0x49864a
lea eax, [esi + esi]
cmp eax, 8
jge 0x498636
mov eax, 8
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004a0495
mov ecx, eax
add esp, 8
mov dword [esp + 0x48], ecx
sub edi, dword [esp + 0x94]
inc ebx
mov dword [ecx + ebx*4 - 4], edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
and eax, 0x10
mov dword [esp + 0x14], eax
je 0x498677
add ebx, 0xfffffffe
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], 0xfffffffe
jmp 0x498683
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], ebx
mov esi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edi, eax
xor eax, eax
xor edx, edx
cmp edi, eax
sete dl
mov dword [esp + 0x20], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
push eax
mov ebx, edi
neg ebx
push esi
lea edx, [edx*4 - 2]
sbb ebx, ebx
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x84]
not ebx
push esi
and ebx, esi
push edx
mov dword [esp + 0x44], ebx
call fcn.00411270
mov dword [esp + 0x18], eax
mov eax, edi
neg eax
sbb eax, eax
and eax, esi
mov dword [esp + 0x94], eax
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x90]
test eax, eax
jl 0x498718
cmp dword [esp + 0x8c], eax
jge 0x498be9
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00410fb0
mov esi, eax
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x49876d
mov ecx, 8
cmp eax, ecx
jge 0x498740
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jge 0x49874d
lea edx, [eax + eax]
mov dword [ebp + 0xc], edx
cmp dword [ebp + 0xc], 0
jge 0x498756
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
add eax, eax
add eax, eax
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 8], 0
mov edi, dword [esi + 8]
test edi, edi
jle 0x4987ff
mov eax, dword [esi + 4]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x498792
mov dword [esp + 0x24], 0x4bb110
mov eax, dword [ebp + 0xc]
mov esi, eax
cmp esi, 8
jge 0x4987a1
mov esi, 8
cmp edi, esi
jle 0x4987bf
add esi, esi
cmp edi, esi
jle 0x4987bf
lea esi, [edi + 0xb]
mov edx, esi
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x4987bd
dec edx
or edx, 0xfffffff8
inc edx
sub esi, edx
cmp esi, eax
jle 0x4987dd
mov ecx, dword [ebp + 4]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
lea edx, [edi*4]
push edx
mov edx, dword [ebp + 4]
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004a0130
add esp, 0xc
add dword [ebp + 8], edi
mov eax, dword [esp + 0x58]
mov dword [esp + 0x54], vtable.CBufferT_int_.0
test eax, eax
je 0x498818
push eax
call fcn.0049e944
add esp, 4
mov ecx, ebp
mov dword [esp + 0x54], vtable.CBufferRefT_int_.0
call fcn.0040ef90
test eax, eax
je 0x498be9
cmp dword [esp + 0x14], 0
mov ecx, ebp
je 0x4988f4
call fcn.004152c0
mov ebx, dword [esp + 0x94]
sub ebx, eax
je 0x4988e8
mov ecx, dword [esp + 0x78]
lea edi, [ecx + eax*2]
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jl 0x498892
mov esi, dword [esp + 0x40]
add esi, esi
cmp esi, 8
jge 0x498871
mov esi, 8
mov eax, dword [esp + 0x38]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x38]
mov dword [ecx + eax*4], edi
inc eax
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
jl 0x4988d5
mov esi, dword [esp + 0x40]
add esi, esi
cmp esi, 8
jge 0x4988b4
mov esi, 8
mov eax, dword [esp + 0x38]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x40], esi
mov ecx, dword [esp + 0x38]
mov dword [ecx + eax*4], ebx
inc eax
sub dword [esp + 0x84], ebx
mov dword [esp + 0x3c], eax
mov ecx, ebp
call fcn.0040efa0
jmp 0x4989ae
call fcn.0040efa0
mov edi, eax
sub edi, dword [esp + 0x94]
je 0x4989a7
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x40]
jl 0x498943
mov esi, dword [esp + 0x40]
add esi, esi
cmp esi, 8
jge 0x498922
mov esi, 8
mov eax, dword [esp + 0x38]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x78]
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x38]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [esp + 0x40]
mov dword [esp + 0x3c], eax
jl 0x498994
mov esi, dword [esp + 0x40]
add esi, esi
cmp esi, 8
jge 0x498973
mov esi, 8
mov ecx, dword [esp + 0x38]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x38]
mov dword [edx + eax*4], edi
inc eax
add dword [esp + 0x84], edi
mov dword [esp + 0x3c], eax
mov ecx, ebp
call fcn.004152c0
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov ecx, eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x1c]
je 0x498bd9
mov ebx, dword [esp + 0x78]
jmp 0x4989e0
mov edx, dword [esp + 0x48]
mov eax, dword [edx + ecx*4]
mov esi, dword [edx + ecx*4 + 4]
mov ecx, dword [esp + 0x80]
lea edi, [ecx + eax*2]
cmp eax, 0xffffffff
jne 0x498ae1
movzx eax, si
add eax, 0xffffffda
cmp eax, 0x3a
ja case.0x498a14.40
movzx edx, byte [eax + 0x499320]
jmp dword [edx*4 + 0x499308]
mov ecx, ebp
call fcn.0040efa0
mov ebx, eax
mov eax, dword [esp + 0x78]
mov ecx, ebp
lea edi, [eax + ebx*2]
call fcn.004152c0
mov esi, eax
sub esi, ebx
mov ebx, dword [esp + 0x78]
jmp case.0x498a14.40
mov ecx, ebp
mov edi, ebx
call fcn.0040efa0
jmp 0x498b23
mov ecx, ebp
call fcn.004152c0
mov esi, dword [esp + 0x7c]
lea edi, [ebx + eax*2]
sub esi, eax
jmp case.0x498a14.40
mov ecx, ebp
call fcn.00491ac0
test eax, eax
jl 0x498a98
mov esi, dword [ebp + 8]
lea edx, [eax + eax + 2]
lea ecx, [eax*8 + 8]
jmp 0x498a80
cmp edx, esi
jge 0x498a8d
mov edi, dword [ebp + 4]
cmp dword [ecx + edi], 0
jge 0x498a98
dec eax
sub ecx, 8
sub edx, 2
test eax, eax
jge 0x498a80
mov edx, dword [ebp + 8]
lea esi, [eax + eax + 2]
cmp esi, edx
jl 0x498aa8
or ecx, 0xffffffff
jmp 0x498aae
mov ecx, dword [ebp + 4]
mov ecx, dword [ecx + esi*4]
lea eax, [eax + eax + 3]
cmp eax, edx
lea edi, [ebx + ecx*2]
jl 0x498abe
or eax, 0xffffffff
jmp 0x498ac4
mov ecx, dword [ebp + 4]
mov eax, dword [ecx + eax*4]
cmp esi, edx
jl 0x498acf
or esi, 0xffffffff
sub eax, esi
jmp 0x498b23
mov edx, dword [ebp + 4]
mov esi, dword [edx + esi*4]
sub eax, esi
jmp 0x498b23
mov esi, dword [esp + 0x7c]
mov edi, ebx
jmp case.0x498a14.40
cmp eax, 0xfffffffe
jne case.0x498a14.40
mov ecx, dword [ebp + 8]
lea edx, [esi + esi + 2]
cmp edx, ecx
jl 0x498af6
or eax, 0xffffffff
jmp 0x498afc
mov eax, dword [ebp + 4]
mov eax, dword [eax + edx*4]
lea edi, [ebx + eax*2]
lea eax, [esi + esi + 3]
cmp eax, ecx
jl 0x498b0c
or eax, 0xffffffff
jmp 0x498b12
mov esi, dword [ebp + 4]
mov eax, dword [esi + eax*4]
cmp edx, ecx
jl 0x498b1b
or edx, 0xffffffff
jmp 0x498b21
mov ecx, dword [ebp + 4]
mov edx, dword [ecx + edx*4]
sub eax, edx
mov esi, eax
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x3c], edx
jl 0x498b61
mov ebx, edx
add ebx, ebx
cmp ebx, 8
jge 0x498b3d
mov ebx, 8
mov ecx, dword [esp + 0x38]
lea eax, [ebx*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x80]
add esp, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
mov dword [edx + eax*4], edi
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x498ba3
lea edi, [ecx + ecx]
cmp edi, 8
jge 0x498b86
mov edi, 8
mov ecx, dword [esp + 0x38]
lea eax, [edi*4]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [edx + eax*4], esi
inc eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x3c], eax
je 0x498bbc
neg esi
mov ecx, dword [esp + 0x24]
add ecx, dword [esp + 0x2c]
add dword [esp + 0x84], esi
mov dword [esp + 0x24], ecx
cmp ecx, dword [esp + 0x1c]
jne 0x4989e0
inc dword [esp + 0x8c]
mov ebx, dword [esp + 0x30]
jmp 0x498700
cmp dword [esp + 0x14], 0
je 0x498c93
mov eax, dword [esp + 0x94]
cmp ebx, eax
jge 0x498d2e
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
cmp esi, ecx
jl 0x498c49
mov esi, ecx
add esi, esi
cmp esi, 8
jge 0x498c1d
mov esi, 8
mov ecx, dword [esp + 0x38]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x9c]
add esp, 8
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x38]
lea edx, [edx + ebx*2]
mov dword [edi + esi*4], edx
inc esi
cmp esi, ecx
jl 0x498c84
lea eax, [ecx + ecx]
cmp eax, 8
jge 0x498c69
mov eax, 8
add eax, eax
add eax, eax
push eax
push edi
call fcn.004a0495
mov edi, eax
mov eax, dword [esp + 0x9c]
add esp, 8
mov dword [esp + 0x38], edi
sub eax, ebx
mov dword [edi + esi*4], eax
inc esi
mov dword [esp + 0x3c], esi
jmp 0x498d36
cmp dword [esp + 0x94], ebx
jge 0x498d2e
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
cmp esi, eax
jl 0x498cdf
mov esi, eax
add esi, esi
cmp esi, 8
jge 0x498cba
mov esi, 8
mov edx, dword [esp + 0x38]
lea ecx, [esi*4]
push ecx
push edx
call fcn.004a0495
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x44]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
add esp, 8
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0x38]
lea ecx, [ecx + edx*2]
mov dword [edi + esi*4], ecx
inc esi
cmp esi, eax
jl 0x498d1c
add eax, eax
cmp eax, 8
jge 0x498d05
mov eax, 8
lea edx, [eax*4]
push edx
push edi
call fcn.004a0495
mov edi, eax
add esp, 8
mov dword [esp + 0x38], edi
sub ebx, dword [esp + 0x94]
inc esi
mov dword [edi + esi*4 - 4], ebx
mov dword [esp + 0x3c], esi
jmp 0x498d36
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
cmp dword [esp + 0x98], 0
jne 0x498d58
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x498d58
mov ecx, ebx
call fcn.0040de70
push ebx
call fcn.0049e4c4
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [ecx], 0
test esi, esi
jle 0x498d7e
lea eax, [esi - 1]
shr eax, 1
lea edx, [edi + 4]
inc eax
mov esi, dword [edx]
add dword [ecx], esi
add edx, 8
sub eax, 1
jne 0x498d72
mov esi, dword [ecx]
xor edi, edi
inc esi
cmp esi, edi
mov dword [esp + 0x58], edi
jle 0x498e04
mov edi, 8
cmp esi, edi
jle 0x498db4
mov edi, 0x10
cmp esi, edi
jle 0x498db4
lea edi, [esi + 0xb]
mov eax, edi
and eax, reloc.OLEAUT32.dll_VariantInit
jns 0x498db2
dec eax
or eax, 0xfffffff8
inc eax
sub edi, eax
lea ebx, [edi + edi]
push ebx
push 0
call fcn.004a0495
add esp, 8
mov dword [esp + 0x58], eax
test esi, esi
jle 0x498ddb
lea ecx, [esi + esi]
push ecx
mov edx, eax
push 0
push edx
call fcn.0049e9f0
add esp, 0xc
test edi, edi
jge 0x498e04
cmp edi, 8
jl 0x498dea
mov edi, ebx
test edi, edi
jge 0x498def
mov edi, 8
mov ecx, dword [esp + 0x58]
lea eax, [edi + edi]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [esp + 0x58], eax
cmp dword [esp + 0x14], 0
mov dword [esp + 0x5c], 0
je 0x498ec6
mov ebx, dword [esp + 0x3c]
add ebx, 0xfffffffe
js 0x498f73
cmp edi, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebx*4 + 4]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
mov esi, edi
jge 0x498e46
mov esi, 8
mov eax, dword [esp + 0x5c]
add eax, ecx
cmp eax, esi
mov dword [esp + 0x7c], eax
jle 0x498e6e
add esi, esi
cmp eax, esi
jle 0x498e6e
lea esi, [eax + 0xb]
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x498e6c
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, edi
jle 0x498e89
mov eax, dword [esp + 0x58]
lea edx, [esi + esi]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [esp + 0x58], eax
mov edi, esi
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.004a0130
mov ecx, dword [esp + 0x88]
add esp, 0xc
sub ebx, 2
mov dword [esp + 0x5c], ecx
jns 0x498e24
jmp 0x498f73
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
jle 0x498f73
cmp edi, 8
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + ebx*4 + 4]
mov edx, dword [eax + ebx*4]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x80], edx
mov esi, edi
jge 0x498ef4
mov esi, 8
mov eax, dword [esp + 0x5c]
add eax, ecx
cmp eax, esi
mov dword [esp + 0x7c], eax
jle 0x498f1c
add esi, esi
cmp eax, esi
jle 0x498f1c
lea esi, [eax + 0xb]
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x498f1a
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, edi
jle 0x498f37
mov eax, dword [esp + 0x58]
lea edx, [esi + esi]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [esp + 0x58], eax
mov edi, esi
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x80]
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
push eax
lea eax, [ecx + edx*2]
push eax
call fcn.004a0130
mov ecx, dword [esp + 0x88]
add ebx, 2
add esp, 0xc
cmp ebx, dword [esp + 0x3c]
mov dword [esp + 0x5c], ecx
jl 0x498ed2
cmp edi, 8
mov dword [esp + 0x78], 0
mov eax, edi
jge 0x498f87
mov eax, 8
mov esi, dword [esp + 0x5c]
lea ecx, [esi + 1]
cmp ecx, eax
jle 0x498fac
add eax, eax
cmp ecx, eax
jle 0x498fac
lea eax, [esi + 0xc]
mov edx, eax
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x498faa
dec edx
or edx, 0xfffffff8
inc edx
sub eax, edx
cmp eax, edi
jle 0x498fc4
mov ecx, dword [esp + 0x58]
add eax, eax
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x58]
mov dx, word [esp + 0x78]
mov ebx, dword [esp + 0x88]
mov word [eax + esi*2], dx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx]
mov esi, eax
cmp esi, 8
jge 0x498fe9
mov esi, 8
mov edx, dword [ebp + 8]
lea ecx, [edx + 4]
cmp ecx, esi
jle 0x49900d
add esi, esi
cmp ecx, esi
jle 0x49900d
lea esi, [edx + 0xf]
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x49900b
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, eax
jle 0x49902b
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [edx + ecx*4], edi
mov ecx, dword [ebp + 4]
mov edi, 1
add dword [ebp + 8], edi
mov eax, dword [ebp + 8]
mov dword [ecx + eax*4], 0
mov eax, dword [ebp + 0xc]
mov esi, eax
cmp esi, 8
jge 0x499058
mov esi, 8
mov edx, dword [ebp + 8]
lea ecx, [edx + 1]
cmp ecx, esi
jle 0x49907c
add esi, esi
cmp ecx, esi
jle 0x49907c
lea esi, [edx + 0xc]
mov edx, esi
and edx, reloc.OLEAUT32.dll_VariantInit
jns 0x49907a
dec edx
or edx, 0xfffffff8
inc edx
sub esi, edx
cmp esi, eax
jle 0x49909a
mov ecx, dword [ebp + 4]
lea eax, [esi*4]
push eax
push ecx
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x8c]
mov dword [eax + edx*4], ecx
add dword [ebp + 8], edi
cmp dword [esp + 0x14], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov esi, eax
je 0x49919a
mov edi, dword [ebx]
sub edi, dword [esp + 0x84]
cmp esi, 8
jge 0x4990d3
mov esi, 8
lea edx, [ecx + 1]
cmp edx, esi
jle 0x4990dc
add esi, esi
inc ecx
cmp ecx, esi
jle 0x4990f8
mov esi, dword [ebp + 8]
add esi, 0xc
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4990f6
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, eax
jle 0x499116
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x88]
mov dword [edx + ecx*4], edi
mov ebx, 1
add dword [ebp + 8], ebx
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
sub edi, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
mov esi, eax
cmp esi, 8
jge 0x499146
mov esi, 8
lea edx, [ecx + 1]
cmp edx, esi
jle 0x49914f
add esi, esi
inc ecx
cmp ecx, esi
jle 0x49916b
mov esi, dword [ebp + 8]
add esi, 0xc
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x499169
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, eax
jle 0x499189
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [edx + ecx*4], edi
add dword [ebp + 8], ebx
jmp 0x49925f
cmp esi, 8
jge 0x4991a4
mov esi, 8
lea edx, [ecx + 1]
cmp edx, esi
jle 0x4991ad
add esi, esi
inc ecx
cmp ecx, esi
jle 0x4991c9
mov esi, dword [ebp + 8]
add esi, 0xc
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4991c7
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, eax
jle 0x4991e7
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0xc]
add dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
mov esi, eax
cmp esi, 8
jge 0x499209
mov esi, 8
lea edx, [ecx + 1]
cmp edx, esi
jle 0x499212
add esi, esi
inc ecx
cmp ecx, esi
jle 0x49922e
mov esi, dword [ebp + 8]
add esi, 0xc
mov ecx, esi
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x49922c
dec ecx
or ecx, 0xfffffff8
inc ecx
sub esi, ecx
cmp esi, eax
jle 0x49924c
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push eax
call fcn.004a0495
add esp, 8
mov dword [ebp + 4], eax
mov dword [ebp + 0xc], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x84]
mov dword [edx + ecx*4], eax
add dword [ebp + 8], edi
mov eax, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
test eax, eax
je 0x499273
push eax
call fcn.0049e944
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x499284
push eax
call fcn.0049e944
add esp, 4
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x499295
push eax
call fcn.0049e944
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
add esp, 0x64
ret 0x24