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

Disassembly:
sub esp, 0x8c
mov edx, dword [esp + 0x94]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor ebx, ebx
mov dword [esp + 0x20], ebx
inc edx
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xb8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x78], ebx
call fcn.00462d80
mov ecx, dword [edi + 0x38]
mov edx, dword [esp + 0xa8]
mov eax, dword [ecx + eax*4 + 0x60]
add eax, edx
lea edx, [esp + 0x78]
push edx
push ebx
push 2
push eax
push ebx
push esi
mov dword [esp + 0x54], eax
call fcn.00489be0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jne 0x497ac4
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
push 1
push ecx
push edx
call fcn.00453820
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x497ac4
mov esi, dword [esp + 0xa8]
lea eax, [esi + 1]
push eax
call fcn.00462d80
mov ecx, dword [edi + 0x38]
mov edx, dword [ecx + eax*4 + 0x60]
lea eax, [esp + 0x14]
add edx, esi
push eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x3c]
push 1
push ecx
push edx
call fcn.00453820
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x497ac4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x10]
mov dword [edx + 0xc], ebx
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], ebx
mov ecx, dword [esp + 0x10]
mov word [ecx + 0x14], bx
mov eax, dword [esp + 0x10]
mov dx, word [ebp]
mov word [eax + 0x16], dx
mov ecx, dword [esp + 0x10]
mov byte [ecx + 0x18], 0
mov edx, dword [esp + 0x10]
mov byte [edx + 0x19], 2
mov edi, dword [edi + 0x3c]
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], edi
mov ecx, dword [ebp]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0xa0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 4]
cmp ecx, ebx
je 0x49751d
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
cmp dword [edx + 0x158], ebx
je 0x49751d
test dword [eax + 0xf4], 0x100
jne 0x49751d
mov eax, dword [edx + 0x168]
cmp eax, ebx
je 0x4974e1
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x4974e1
test byte [eax + 0x1a8], 1
jne 0x49751d
mov eax, dword [ebp]
lea edx, [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
push eax
mov eax, dword [eax + 8]
push edx
push eax
push 0x80
lea edx, [esp + 0x2c]
push ebx
push edx
push ecx
push ebp
call fcn.004445d0
mov esi, eax
add esp, 0x20
cmp esi, ebx
jne 0x497ac4
xor ebx, ebx
jmp 0x497529
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0xc], ebx
mov edx, dword [esp + 0x18]
mov dword [edx + 0x10], ebx
mov eax, dword [esp + 0x18]
mov word [eax + 0x14], bx
mov edx, dword [esp + 0x18]
mov cx, word [ebp]
mov word [edx + 0x16], cx
mov eax, dword [esp + 0x18]
mov byte [eax + 0x18], 0
mov ecx, dword [esp + 0x18]
mov byte [ecx + 0x19], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x98], ebx
je 0x497ae7
mov eax, dword [eax + 8]
lea edx, [esp + 0x24]
push edx
push 0xffff
push eax
push ebp
call fcn.00491480
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x497ac4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
cmp word [eax + 0x14], si
jbe 0x497942
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x88]
and ebx, 0xffff
push edx
push ecx
push ebx
push eax
push ebp
mov dword [esp + 0x58], ebx
call fcn.0047aff0
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x497ac4
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0xa0]
push edx
push eax
push ecx
call fcn.00490440
mov ecx, dword [esp + 0xb0]
add esp, 0xc
cmp eax, ecx
jne 0x497628
lea edx, [esp + 0x18]
mov dword [esp + 0x50], edx
jmp 0x497630
lea eax, [esp + 0x10]
mov dword [esp + 0x50], eax
lea eax, [ebx + 1]
test eax, eax
mov dword [esp + 0x70], eax
jne 0x497640
mov edx, dword [ebp]
jmp 0x497669
mov eax, dword [ebp + 0x250]
test ah, 4
je 0x497652
mov eax, 0x26
jmp 0x49765b
and al, 1
neg al
sbb eax, eax
and eax, 6
lea ecx, [eax + ebx*2 + 0x1a]
mov eax, dword [esp + 0x14]
xor edx, edx
mov dx, word [ecx + eax]
mov esi, dword [ebp + 0x250]
mov edi, esi
and edi, 0x400
je 0x497683
mov dword [esp + 0x4c], 0x26
jmp 0x497693
mov ecx, esi
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 6
mov dword [esp + 0x4c], ecx
cmp word [esp + 0x2c], 0
jne 0x4976a0
mov eax, dword [ebp]
jmp 0x4976c4
test edi, edi
je 0x4976ab
mov eax, 0x26
jmp 0x4976b6
mov eax, esi
and al, 1
neg al
sbb eax, eax
and eax, 6
mov ebp, dword [esp + 0x14]
lea ecx, [eax + ebx*2 + 0x18]
xor eax, eax
mov ax, word [ecx + ebp]
test edi, edi
je 0x4976cf
mov ecx, 0x26
jmp 0x4976db
mov ecx, esi
and cl, 1
neg cl
sbb ecx, ecx
and ecx, 6
lea ebx, [ecx + ebx*2 + 0x1a]
mov ecx, dword [esp + 0x14]
xor ebp, ebp
mov bp, word [ebx + ecx]
mov ebx, dword [esp + 0x4c]
sub eax, ebp
mov ebp, dword [esp + 0x40]
lea ebx, [ebx + ebp*2 + 0x1c]
xor ebp, ebp
mov bp, word [ebx + ecx]
sub eax, ebp
test edi, edi
lea edx, [eax + edx + 4]
je 0x49770e
mov ecx, 0x26
jmp 0x49771b
mov eax, esi
and al, 1
neg al
sbb eax, eax
and eax, 6
mov ecx, eax
mov edi, dword [esp + 0x50]
xor esi, esi
xor ebx, ebx
add ecx, 0x1a
mov eax, dword [edi]
and ecx, 0xffff
mov si, word [eax + 0x14]
mov bx, word [eax + 0x16]
shl esi, 1
sub ebx, esi
sub ebx, ecx
cmp ebx, edx
jae 0x497806
mov edx, dword [esp + 0xa0]
mov esi, dword [edx + 4]
test esi, esi
je 0x4977c1
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x158]
test ebx, ebx
je 0x4977c1
mov ebx, dword [edx + 0xf4]
test bh, 1
jne 0x4977c1
mov ecx, dword [ecx + 0x168]
test ecx, ecx
je 0x497786
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x497786
test byte [ecx + 0x1a8], 1
jne 0x4977c1
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0x54]
push eax
push ecx
mov edx, dword [ebp]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], edx
mov edx, dword [eax + 8]
push edx
push 0x90
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push ebp
call fcn.004445d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x497ac4
jmp 0x4977d5
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov ecx, dword [edi]
mov edx, dword [esp + 0x1c]
push edi
push 1
mov dword [ecx], edx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0xa8]
mov dword [ecx + 4], eax
mov ecx, dword [edi]
push ecx
push edx
call fcn.004982c0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x497ac4
jmp 0x49780a
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4978fd
mov eax, dword [edx]
xor esi, esi
test eax, eax
je 0x4978fd
xor ecx, ecx
mov eax, dword [ecx + edx]
mov ebp, dword [esp + 0x14]
mov eax, dword [eax + 0xb8]
mov ebx, dword [eax + 0xc]
cmp ebx, dword [ebp + 8]
jne 0x49785f
mov bx, word [eax + 0x10]
cmp bx, word [esp + 0x2c]
jne 0x49785f
mov edx, dword [edi]
mov esi, 1
mov edx, dword [edx + 8]
mov dword [eax + 0xc], edx
mov edx, dword [edi]
mov dx, word [edx + 0x14]
mov word [eax + 0x10], dx
mov edx, dword [esp + 0x24]
mov eax, dword [ecx + edx + 4]
add ecx, 4
test eax, eax
jne 0x497824
test esi, esi
je 0x4978f9
mov edx, dword [esp + 0xa0]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x4978f9
mov eax, dword [edx]
mov eax, dword [eax + 0x14]
mov esi, dword [eax + 0x158]
test esi, esi
je 0x4978f9
test dword [edx + 0xf4], 0x100
jne 0x4978f9
mov eax, dword [eax + 0x168]
test eax, eax
je 0x4978b5
mov eax, dword [eax + 4]
test eax, eax
je 0x4978b5
test byte [eax + 0x1a8], 1
jne 0x4978f9
mov eax, dword [ecx + 4]
test eax, eax
je 0x4978f9
mov eax, dword [edi]
xor edx, edx
mov ebp, dword [esp + 0x30]
mov dx, word [eax + 0x14]
mov eax, dword [eax + 8]
push edx
mov edx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [edx + 8]
lea edx, [esp + 0x28]
push eax
push 6
push 0
push edx
push ecx
push ebp
call fcn.00445cf0
mov esi, eax
add esp, 0x24
test esi, esi
jne 0x497ac4
jmp 0x4978fd
mov ebp, dword [esp + 0x30]
mov eax, dword [edi]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
push ebp
call fcn.00498190
mov eax, dword [edi]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
push ebp
call fcn.00498190
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
add ecx, 2
add esp, 0x20
cmp cx, word [eax + 0x14]
mov dword [esp + 0x2c], ecx
jb 0x4975be
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 8]
cmp edx, dword [esp + 0x38]
je 0x49796d
push eax
mov eax, dword [esp + 0xa4]
push eax
call fcn.00488ea0
mov esi, eax
add esp, 8
test esi, esi
jne 0x497abc
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x497980
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x497a52
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x48]
push 1
push edx
push eax
call fcn.00453820
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x497ac4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x497a52
mov edx, dword [esp + 0xa0]
mov esi, dword [edx + 4]
test esi, esi
je 0x497a2d
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x158]
test edi, edi
je 0x497a2d
test dword [edx + 0xf4], 0x100
jne 0x497a2d
mov ecx, dword [ecx + 0x168]
test ecx, ecx
je 0x4979f2
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x4979f2
test byte [ecx + 0x1a8], 1
jne 0x497a2d
mov edx, dword [ebp]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], edx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x54]
push eax
push ecx
push edx
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push ebp
call fcn.004445d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x497ac4
mov eax, dword [esp + 0x14]
jmp 0x497a3d
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 1
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x497a6c
push ecx
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00410cc0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
mov dword [esp + 0x24], 0
jne 0x49758b
mov eax, dword [esp + 0x48]
test eax, eax
je 0x497ae7
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.00410cc0
mov eax, dword [esp + 0x1c]
add esp, 8
test eax, eax
je 0x497ae7
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x38]
cmp ecx, edx
je 0x497ae7
mov edx, dword [esp + 0xa0]
push eax
push edx
call fcn.00488ea0
mov esi, eax
add esp, 8
test esi, esi
je 0x497ae7
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
xor ebx, ebx
cmp eax, ebx
je 0x497c30
mov edi, dword [esp + 0x28]
push 2
push eax
push edi
call fcn.00453170
add esp, 0xc
jmp 0x497c34
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx + 4]
test edx, edx
je 0x497bda
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
mov esi, dword [eax + 0x158]
test esi, esi
je 0x497bda
test dword [ecx + 0xf4], 0x100
jne 0x497bda
mov eax, dword [eax + 0x168]
test eax, eax
je 0x497b3a
mov eax, dword [eax + 4]
test eax, eax
je 0x497b3a
test byte [eax + 0x1a8], 1
jne 0x497bda
mov ecx, dword [ebp]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], eax
push eax
mov eax, dword [eax + 8]
lea ecx, [esp + 0x58]
push ecx
push eax
push 0x90
lea ecx, [esp + 0x2c]
push 0
push ecx
push edx
push ebp
call fcn.004445d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x497ac4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], eax
mov edx, dword [eax + 8]
push eax
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push 0x90
mov edx, dword [ecx + 4]
lea eax, [esp + 0x2c]
push esi
push eax
push edx
push ebp
call fcn.004445d0
mov esi, eax
add esp, 0x20
test esi, esi
jne 0x497ac4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
jmp 0x497c01
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword [ecx], 0
mov edx, dword [esp + 0x18]
mov dword [edx + 4], eax
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0
mov edx, dword [esp + 0x10]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
push 2
push eax
push edi
call fcn.00453170
mov ecx, dword [esp + 0x1c]
push 2
push ecx
push edi
mov esi, eax
call fcn.00453170
add esp, 0x18
test eax, eax
je 0x497ca4
test esi, esi
jne 0x497ca4
mov esi, eax
jmp 0x497ca4
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x497c85
mov edx, dword [esp + 0x34]
push 2
mov dword [eax + 8], edx
mov eax, dword [esp + 0x14]
mov dword [eax + 0xc], ebx
mov ecx, dword [esp + 0x14]
mov dword [ecx + 0x10], ebx
mov edx, dword [esp + 0x14]
mov word [edx + 0x14], bx
mov ecx, dword [esp + 0x14]
mov ax, word [ebp]
mov word [ecx + 0x16], ax
mov edx, dword [esp + 0x14]
mov byte [edx + 0x18], 0
mov eax, dword [esp + 0x14]
mov byte [eax + 0x19], 2
mov ecx, dword [esp + 0x14]
push ecx
push edi
call fcn.00453170
add esp, 0xc
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x497ca4
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
je 0x497ca4
push 2
push eax
push edi
call fcn.00453170
add esp, 0xc
mov eax, dword [esp + 0x74]
test eax, eax
je 0x497ccb
mov ecx, dword [esp + 0xa0]
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.00489f30
add esp, 8
test eax, eax
je 0x497ccb
test esi, esi
jne 0x497ccb
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x497ce1
mov edx, dword [esp + 0x3c]
push eax
push edx
call fcn.00410cc0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret