Function at 0x497ec0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, 1
sub esp, 0x5c
mov esi, dword [esp + 0x74]
mov eax, dword [esp + 0x7c]
test esi, esi
je 0x497f4a
cmp eax, 0x29
sete bl
cmp eax, 0xffffffff
sete dl
or bl, dl
jne 0x497f6d
test eax, eax
je 0x497f54
mov ecx, dword [esp + 0x70]
call dword [0x57f400]
cmp eax, 0xc
je 0x498530
jbe 0x497f90
cmp eax, 0x19
je 0x498510
ja 0x497fe0
cmp eax, 0x10
je 0x4981b0
ja 0x498180
cmp eax, 0xe
je 0x4981e4
cmp eax, 0xf
jne 0x498674
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f41c]
mov dword [esi], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x78]
mov dword [esp + 4], str.QVariant
mov dword [esp], eax
call dword [0x57ef1c]
test eax, eax
jne 0x497ef0
mov eax, dword [esp + 0x70]
mov ecx, esi
mov ebx, 1
mov dword [esp], eax
call dword [0x57f1c4]
sub esp, 4
mov eax, ebx
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x4984a3
jbe 0x498080
cmp eax, 9
je 0x498432
ja 0x4980c1
cmp eax, 5
je 0x498480
cmp eax, 6
jne 0x498674
mov dword [esp], 0
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f42c]
sub esp, 4
fstp qword [esi]
jmp 0x497f4a
cmp eax, 0x43
je 0x4982c5
ja 0x498150
cmp eax, 0x40
je 0x498220
cmp eax, 0x41
jne 0x498674
mov ecx, dword [esp + 0x70]
call dword [0x57f438]
cmp eax, 0x41
je 0x498619
lea ebx, [esp + 0x3c]
mov ebp, dword [0x57f544]
mov ecx, ebx
call ebp
mov dword [esp + 4], ebx
mov dword [esp], 0x41
mov ecx, dword [esp + 0x70]
call dword [0x57f424]
sub esp, 8
test al, al
lea edi, [esp + 0x2c]
je 0x498599
mov dword [esp], ebx
mov ecx, edi
call dword [0x57f540]
sub esp, 4
mov ecx, ebx
mov ebx, dword [0x57f548]
call ebx
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x38]
mov ecx, edi
mov dword [esi + 0xc], edx
mov dword [esp + 0x38], eax
call ebx
mov ebx, 1
jmp 0x497f4a
cmp eax, 1
je 0x498200
jb 0x498140
cmp eax, 2
je 0x4982a5
cmp eax, 3
jne 0x498674
mov dword [esp], 0
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f420]
sub esp, 4
mov dword [esi], eax
jmp 0x497f4a
cmp eax, 0xa
je 0x4983d0
cmp eax, 0xb
jne 0x498674
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call dword [0x57f3fc]
sub esp, 4
mov edx, dword [0x57f214]
mov eax, dword [esi]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esi], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x49858b
cmp ecx, 0xffffffff
je 0x49811e
mov ecx, 0xffffffff
lock xadd dword [eax], ecx
mov edx, dword [esp + 0x3c]
cmp ecx, 1
je 0x49858b
mov eax, dword [edx]
test eax, eax
je 0x498133
cmp eax, 0xffffffff
je 0x498140
lock sub dword [edx], 1
mov edx, dword [esp + 0x3c]
jne 0x498140
mov eax, edx
call fcn.00497bf0
lea esi, [esi]
mov ebx, 1
jmp 0x497f4a
cmp eax, 0x4a
je 0x498350
cmp eax, 0x400
jne 0x498674
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f43c]
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x497f4a
cmp eax, 0x13
je 0x4984d0
cmp eax, 0x15
jne 0x498674
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f418]
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x497f4a
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov ebx, 1
mov dword [esp], eax
call dword [0x57f3ec]
sub esp, 4
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esi], edx
call dword [0x57f1d8]
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f40c]
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f408]
mov byte [esi], al
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
call dword [0x57f438]
cmp eax, 0x40
je 0x4985cd
lea ebx, [esp + 0x3c]
mov ebp, dword [0x57f4f8]
mov ecx, ebx
call ebp
mov dword [esp + 4], ebx
mov dword [esp], 0x40
mov ecx, dword [esp + 0x70]
call dword [0x57f424]
sub esp, 8
test al, al
lea edi, [esp + 0x2c]
je 0x4985a2
mov dword [esp], ebx
mov ecx, edi
call dword [0x57f4f4]
sub esp, 4
mov ecx, ebx
mov ebx, dword [0x57f4fc]
call ebx
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov dword [esi], edx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
mov dword [esi + 4], edx
mov dword [esp + 0x30], eax
call ebx
mov ebx, 1
jmp 0x497f4a
mov dword [esp], 0
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f404]
sub esp, 4
mov dword [esi], eax
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
call dword [0x57f438]
cmp eax, 0x43
je 0x4985f4
xor eax, eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0xffff
mov word [esp + 0x48], ax
lea eax, [esp + 0x3c]
mov dword [esp + 0x44], 0
mov dword [esp], 0x43
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], eax
call dword [0x57f424]
sub esp, 8
test al, al
jne 0x4985ab
xor eax, eax
xor edx, edx
xor ecx, ecx
xor ebx, ebx
mov edi, 0xffffffff
xor ebp, ebp
mov word [esi + 6], bx
mov dword [esi], ebp
mov ebx, 1
mov word [esi + 4], di
mov word [esi + 8], cx
mov word [esi + 0xa], dx
mov word [esi + 0xc], ax
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
call dword [0x57f438]
cmp eax, 0x4a
je 0x498640
lea ebx, [esp + 0x3c]
mov ebp, dword [0x57f534]
mov ecx, ebx
call ebp
mov dword [esp + 4], ebx
mov dword [esp], 0x4a
mov ecx, dword [esp + 0x70]
call dword [0x57f424]
sub esp, 8
test al, al
je 0x498667
mov eax, dword [esp + 0x3c]
lea edi, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], eax
mov ecx, ebx
mov ebx, dword [0x57f538]
call ebx
mov eax, dword [esi]
mov edx, dword [esp + 0x2c]
mov ecx, edi
mov dword [esi], edx
mov dword [esp + 0x2c], eax
call ebx
mov ebx, 1
jmp 0x497f4a
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call dword [0x57f430]
sub esp, 4
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esi], edx
mov edx, dword [eax]
test edx, edx
je 0x498410
cmp edx, 0xffffffff
je 0x498140
lock sub dword [eax], 1
jne 0x498140
lea esi, [esi]
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [0x57ef28]
jmp 0x498140
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x2c]
mov ebx, 1
mov dword [esp], eax
call dword [0x57f410]
mov eax, dword [0x57f214]
sub esp, 4
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov dword [esi], edx
mov dword [esp + 0x3c], eax
call fcn.004ccb8c
lea ecx, [esp + 0x2c]
call fcn.004ccb8c
jmp 0x497f4a
mov dword [esp], 0
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f3f8]
sub esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x497f4a
mov dword [esp], 0
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f3f0]
sub esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x497f4a
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x10]
mov ebx, 1
mov dword [esp], eax
call dword [0x57f414]
sub esp, 4
mov eax, dword [esp + 0x10]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
jmp 0x497f4a
mov ecx, dword [esp + 0x70]
mov ebx, 1
call dword [0x57f428]
mov dword [esi], eax
mov dword [esi + 4], edx
jmp 0x497f4a
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x3c]
mov dword [esp], eax
call dword [0x57f3f4]
sub esp, 4
mov eax, dword [esi]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov dword [esi], edx
mov edx, dword [eax]
test edx, edx
je 0x498569
cmp edx, 0xffffffff
je 0x498140
lock sub dword [eax], 1
jne 0x498140
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 4
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [0x57ef28]
jmp 0x498140
call fcn.00497bf0
mov edx, dword [esp + 0x3c]
jmp 0x49811e
mov ecx, edi
call ebp
jmp 0x498054
mov ecx, edi
call ebp
jmp 0x498273
mov ebp, dword [esp + 0x3c]
movzx edi, word [esp + 0x40]
movzx ebx, word [esp + 0x42]
movzx ecx, word [esp + 0x44]
movzx edx, word [esp + 0x46]
movzx eax, word [esp + 0x48]
jmp 0x49832a
lea edi, [esp + 0x2c]
mov ecx, dword [esp + 0x70]
call dword [0x57f43c]
mov ecx, edi
mov dword [esp], eax
call dword [0x57f4f4]
mov ebx, dword [0x57f4fc]
sub esp, 4
jmp 0x49827d
mov ecx, dword [esp + 0x70]
call dword [0x57f43c]
mov ebp, dword [eax]
movzx edi, word [eax + 4]
movzx ebx, word [eax + 6]
movzx ecx, word [eax + 8]
movzx edx, word [eax + 0xa]
movzx eax, word [eax + 0xc]
jmp 0x49832a
lea edi, [esp + 0x2c]
mov ecx, dword [esp + 0x70]
call dword [0x57f43c]
mov ecx, edi
mov dword [esp], eax
call dword [0x57f540]
mov ebx, dword [0x57f548]
sub esp, 4
jmp 0x49805e
lea edi, [esp + 0x2c]
mov ecx, dword [esp + 0x70]
call dword [0x57f43c]
mov ecx, edi
mov dword [esp], eax
call dword [0x57f530]
mov ebx, dword [0x57f538]
sub esp, 4
jmp 0x4983af
lea edi, [esp + 0x2c]
mov ecx, edi
call ebp
jmp 0x4983a5
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], str.default
mov dword [esp + 4], str.QVariantToVoidStar:_Unhandled_QVariant_type
mov dword [esp], eax
call dword [0x57f320]
jmp 0x497f4a