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

Disassembly:
sub esp, 0xbc
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x4c], 0xffffffff
push esi
push edi
xor esi, esi
mov dword [esp + 0x24], ebp
mov ebx, dword [ebp + 8]
mov edi, dword [ebp]
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], 1
movzx eax, byte [ebx + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], edi
lea ecx, [eax + eax*8]
mov eax, dword [edi + 4]
lea ecx, [ecx + 1]
test byte [eax + ecx*8 + 0x28], 2
lea edx, [eax + ecx*8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
je 0x497805
mov eax, dword [edx + 0x44]
jmp 0x4978b1
test byte [ecx + 0x1c], 0x80
je 0x497813
mov eax, dword [ecx + 8]
jmp 0x4978b1
xorps xmm0, xmm0
mov dword [esp + 0x60], esi
lea eax, [esp + 0x54]
movlpd qword [esp + 0x97], xmm0
mov dword [esp + 0x64], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x68], eax
movlpd qword [esp + 0x70], xmm0
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x88], xmm0
movlpd qword [esp + 0x9f], xmm0
mov byte [esp + 0xa7], 0
mov dword [esp + 0x92], 0x10001
mov byte [esp + 0x96], 5
mov dword [esp + 0x6c], ecx
movzx eax, word [ecx + 0x28]
or dword [esp + 0x98], 3
mov word [esp + 0x90], ax
movzx eax, word [ecx + 0x26]
mov word [esp + 0x48], ax
xor eax, eax
mov word [esp + 0x4a], ax
test byte [edx + 0x28], 1
jne 0x4978ad
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, ecx
mov ecx, 0x1c
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 0x26]
mov ecx, eax
mov ebp, eax
mov eax, dword [esp + 0x24]
cmp dword [eax + 0xc], esi
jne 0x497a95
mov eax, 0x1020
test word [edi + 0x2c], ax
jne 0x497a95
mov eax, dword [edi]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
and eax, 0x8000
or eax, 0
je 0x497a95
test byte [edx + 0x28], 0x4b
jne 0x497a95
mov eax, dword [esp + 0x34]
test byte [eax], 0x80
jne 0x497a95
test byte [edx + 0x24], 0x10
jne 0x497a95
mov eax, dword [esp + 0x2c]
mov esi, dword [eax + 0x18]
mov eax, dword [eax + 0xc]
lea ebx, [eax + eax*2]
shl ebx, 4
add ebx, esi
cmp bp, 0xa
jg 0x49793c
xor edi, edi
jmp 0x497955
movsx eax, cx
cdq
push edx
push eax
call fcn.00409280
mov edx, dword [esp + 0x18]
add esp, 8
sub ax, 0x21
movzx edi, ax
cmp esi, ebx
jae 0x497a8d
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
and ecx, dword [esi + 0x20]
and eax, dword [esi + 0x24]
or ecx, eax
jne 0x497a6f
push ecx
push ecx
mov ecx, esi
call fcn.004946c0
add esp, 8
test eax, eax
je 0x497a6f
mov edx, dword [esp + 0x20]
mov ecx, 1
mov eax, dword [edx + 0x38]
mov word [edx + 0x18], cx
mov dword [edx + 0x30], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0x20], 0
mov dword [eax], esi
lea eax, [edi + ebp]
mov word [edx + 0x12], ax
cmp byte [ecx + 0x2b], 2
je 0x4979c7
mov ecx, dword [esp + 0x34]
test dword [ecx], 0x4000
jne 0x4979c7
add eax, 0x1c
jmp 0x4979ca
add eax, 0xfffffff6
movzx eax, ax
mov word [edx + 0x12], ax
test ax, ax
jns 0x4979dc
xor eax, eax
mov word [edx + 0x12], ax
mov eax, 0x2b
movsx ecx, di
mov word [edx + 0x16], ax
cmp di, ax
jl 0x497a0d
cmp ecx, 0x5c
jle 0x4979f7
movzx eax, di
jmp 0x497a3c
cmp ecx, 0x4a
jle 0x497a01
lea eax, [edi + 1]
jmp 0x497a39
movzx eax, byte [ecx + 0x4e1581]
add ax, di
jmp 0x497a39
lea eax, [ecx + 0x31]
cmp eax, 0x2b
jge 0x497a1c
mov eax, 0x2b
jmp 0x497a3c
lea eax, [ecx + 0x1f]
cmp eax, 0x2b
jge 0x497a2b
mov eax, 0x2c
jmp 0x497a3c
mov eax, 0x4e15d7
sub eax, ecx
movzx eax, byte [eax]
add ax, 0x2b
movzx eax, ax
mov ecx, dword [esp + 0xd0]
mov word [edx + 0x14], ax
mov dword [edx + 0x2c], 0x4000
or ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
or eax, dword [esp + 0xd4]
mov dword [edx], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 4], eax
call fcn.00496670
mov dword [esp + 0x14], eax
jmp 0x497a73
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
add esi, 0x30
test eax, eax
je 0x497955
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
nop dword [eax]
test ebp, ebp
je 0x497f33
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x497ace
mov dl, byte [edx + 0x24]
mov ecx, dword [esi + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.00497660
add esp, 8
test eax, eax
je 0x497efc
test dword [ebp + 0x38], 0x100
jne 0x497efc
mov eax, dword [ebp + 8]
xor ecx, ecx
movzx eax, word [eax]
mov dword [ebx + 0x18], ecx
mov word [ebx + 0x1c], cx
mov dword [ebx + 0x30], ecx
mov byte [ebx + 0x11], cl
mov word [ebx + 0x12], cx
mov ecx, dword [esp + 0xd0]
mov dword [ebx], ecx
mov ecx, dword [esp + 0xd4]
mov dword [ebx + 4], ecx
mov word [ebx + 0x16], ax
mov dword [ebx + 0x20], ebp
test byte [ebp + 0x38], 4
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x40], ecx
jne 0x497c27
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov dword [esp + 0x18], esi
test esi, esi
je 0x497c27
cmp dword [esi], 0
mov dword [esp + 0x4c], 0
jle 0x497c27
mov eax, dword [esp + 0x18]
add esi, 8
mov dword [esp + 0x50], esi
mov esi, dword [esi]
test esi, esi
je 0x497bff
nop
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x497b82
test eax, 0x80000
je 0x497b79
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x497b7c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x497b60
jmp 0x497bfb
cmp byte [esi], 0xa7
jne 0x497bb5
cmp dword [esi + 0x1c], ecx
jne 0x497bb5
movzx edx, word [esi + 0x20]
test dx, dx
js 0x497c20
movzx esi, word [ebp + 0x32]
xor ecx, ecx
test esi, esi
je 0x497bfb
mov eax, dword [ebp + 4]
cmp dx, word [eax]
je 0x497c20
inc ecx
add eax, 2
cmp ecx, esi
jl 0x497ba6
jmp 0x497bfb
mov ebx, dword [ebp + 0x28]
test ebx, ebx
je 0x497bfb
xor eax, eax
xor edi, edi
cmp ax, word [ebp + 0x32]
jae 0x497bfb
add ebx, 8
nop dword [eax]
mov eax, dword [ebp + 4]
cmp word [eax + edi*2], 0xfffe
jne 0x497bef
mov edx, dword [ebx]
push ecx
mov ecx, esi
call fcn.00448670
add esp, 4
test eax, eax
je 0x497c20
mov ecx, dword [esp + 0x40]
movzx eax, word [ebp + 0x32]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x497bd0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
inc ecx
add esi, 0x14
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], esi
cmp ecx, dword [eax]
jge 0x497c27
mov ecx, dword [esp + 0x40]
jmp 0x497b54
mov edx, 1
jmp 0x497c29
xor edx, edx
mov ecx, dword [ebp + 0x38]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x497c87
mov ebx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x38]
test edx, edx
mov esi, dword [esp + 0x30]
mov edx, ebx
movzx eax, al
cmovne ecx, eax
mov dword [ebx + 0x2c], 0x100
mov byte [ebx + 0x11], cl
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 0x10]
push esi
mov word [ebx + 0x14], ax
call fcn.00496950
mov ecx, dword [esp + 0x28]
add esp, 4
mov edx, ebx
call fcn.00496670
mov word [ebx + 0x16], si
test eax, eax
jne 0x497f35
jmp 0x497ecb
test cl, 0x20
je 0x497ca4
xorps xmm0, xmm0
mov eax, 0x240
movlpd qword [esp + 0x40], xmm0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
jmp 0x497cc4
mov eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x40]
mov edi, dword [ebp + 0x44]
and esi, dword [eax + 0x38]
and edi, dword [eax + 0x3c]
mov eax, esi
or eax, edi
mov eax, 0x240
je 0x497cc4
mov eax, 0x200
mov ebx, dword [esp + 0x20]
mov dword [ebx + 0x2c], eax
test edx, edx
jne 0x497d35
mov eax, dword [esp + 0x34]
test byte [eax], 0x80
jne 0x497d35
cmp dword [ebp + 0x24], edx
jne 0x497d35
mov eax, dword [esp + 0x10]
test byte [eax + 0x28], 2
jne 0x497d35
mov eax, esi
or eax, edi
jne 0x497ecb
test byte [ebp + 0x38], 4
jne 0x497ecb
mov ecx, dword [esp + 0x28]
mov ax, word [ebp + 0x30]
cmp ax, word [ecx + 0x28]
jge 0x497ecb
mov eax, dword [esp + 0x3c]
test byte [eax + 0x2c], 4
jne 0x497ecb
cmp byte [0x4e8b0f], dl
je 0x497ecb
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x20
jne 0x497ecb
mov eax, dword [esp + 0x38]
xor ecx, ecx
movzx eax, al
test edx, edx
cmovne ecx, eax
mov byte [ebx + 0x11], cl
movsx ecx, word [ebp + 0x30]
mov eax, ecx
shl eax, 4
sub eax, ecx
mov ecx, dword [esp + 0x28]
cdq
movsx ecx, word [ecx + 0x28]
idiv ecx
mov ecx, dword [esp + 0x30]
inc eax
add eax, ecx
or esi, edi
mov word [ebx + 0x14], ax
je 0x497e8d
lea eax, [ecx + 0x10]
xor ebx, ebx
mov ecx, dword [esp + 0x3c]
movzx esi, ax
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x40], eax
cmp dword [ecx + 0x64], ebx
jle 0x497e26
xor ebp, ebp
mov edi, dword [ecx + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov edx, dword [edi + ebp]
mov dword [esp + 0xac], 0
movlpd qword [esp + 0xb4], xmm0
movlpd qword [esp + 0xbc], xmm0
mov dword [esp + 0xb0], 0x448b60
mov dword [esp + 0xc4], eax
test edx, edx
je 0x497ded
lea ecx, [esp + 0xac]
call fcn.0043bbd0
mov ecx, dword [esp + 0x3c]
cmp word [esp + 0xc0], 0
jne 0x497e22
movzx eax, word [edi + ebp + 8]
test ax, ax
jg 0x497e06
add esi, eax
jmp 0x497e11
dec esi
test byte [edi + ebp + 0xc], 0x82
je 0x497e11
sub esi, 0x13
mov eax, dword [esp + 0x40]
inc ebx
add ebp, 0x30
cmp ebx, dword [ecx + 0x64]
jl 0x497d91
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movsx edx, si
movzx edi, word [ebx + 0x14]
movsx ecx, di
cmp di, si
jl 0x497e5e
lea eax, [edx + 0x31]
cmp ecx, eax
jle 0x497e44
mov eax, edi
jmp 0x497e85
lea eax, [edx + 0x1f]
cmp ecx, eax
jle 0x497e50
lea eax, [edi + 1]
jmp 0x497e82
sub ecx, edx
movzx eax, byte [ecx + str._n_n_t_t_b_b_a_a_a]
add ax, di
jmp 0x497e82
lea eax, [ecx + 0x31]
cmp edx, eax
jle 0x497e6a
movzx eax, si
jmp 0x497e85
lea eax, [ecx + 0x1f]
cmp edx, eax
jle 0x497e76
lea eax, [esi + 1]
jmp 0x497e82
sub edx, ecx
movzx eax, byte [edx + str._n_n_t_t_b_b_a_a_a]
add ax, si
movzx eax, ax
mov ecx, dword [esp + 0x30]
mov word [ebx + 0x14], ax
push ecx
mov ecx, dword [esp + 0x30]
mov edx, ebx
call fcn.00496950
mov eax, dword [esp + 0x14]
add esp, 4
test byte [eax + 0x24], 0x10
je 0x497eac
cmp dword [ebp + 0x28], 0
jne 0x497ebb
mov ecx, dword [esp + 0x24]
mov edx, ebx
call fcn.00496670
mov ecx, eax
jmp 0x497ebf
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov word [ebx + 0x16], ax
test ecx, ecx
jne 0x497f26
mov ebx, dword [esp + 0x24]
mov ecx, ebx
mov edx, dword [esp + 0x10]
push 0
push ebp
mov byte [ebx + 0x10], 0
call fcn.00496d40
add esp, 8
mov esi, eax
cmp byte [ebx + 0x10], 1
mov dword [esp + 0x14], esi
jne 0x497f00
mov eax, dword [esp + 0x34]
or dword [eax], 0x100
jmp 0x497f00
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test byte [edx + 0x28], 2
je 0x497f0e
xor ebp, ebp
jmp 0x497f11
mov ebp, dword [ebp + 0x14]
inc dword [esp + 0x38]
mov dword [esp + 0x1c], ebp
test esi, esi
jne 0x497f33
mov ebx, dword [esp + 0x20]
jmp 0x497aa0
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret