Function at 0x41d479
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, eax
push edi
and ecx, 0xffff
shr eax, 0x10
mov dword [esi + 0x35b2a8], ecx
mov dword [esi + 0x35b2ac], eax
mov eax, dword [esi + 0x362370]
test eax, eax
je 0x41d4c7
mov eax, dword [esi + 0x35b2ac]
mov edx, dword [esi + 0x362354]
lea ecx, [esi + 0x362354]
push eax
mov eax, dword [esi + 0x35b2a8]
push eax
call dword [edx + 0x1c]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov edx, dword [esi + 0x35b2ac]
mov eax, dword [esi + 0x35b2a8]
lea ecx, [esi + 0x3615b0]
push edx
push eax
mov dword [esp + 0x28], ecx
call fcn.00418400
test eax, eax
jne 0x41d986
mov eax, dword [esi + 0x35b2b8]
test eax, eax
je 0x41d986
mov eax, dword [esi + 0x4279a4]
test eax, eax
ja 0x41d986
mov eax, dword [esi + 0x428064]
test eax, eax
jne 0x41d986
mov ecx, dword [esi + 0x35b2a8]
mov eax, 0x2aaaaaab
add ecx, 0xc8
mov ebp, dword [esi + 0xf532c]
imul ecx
mov eax, dword [esi + 0x35b2ac]
mov ebx, dword [esi + 0xf5330]
sar edx, 3
mov ecx, edx
add eax, 0x9d
shr ecx, 0x1f
add edx, ecx
lea ecx, [esi + 0x2a548c]
add edx, ebp
mov dword [esp + 0x10], ecx
mov dword [esi + 0x35b2b0], edx
cdq
and edx, 0x1f
add eax, edx
mov edx, dword [esi + 0x35b2ac]
sar eax, 5
add eax, ebx
push edx
mov dword [esi + 0x35b2b4], eax
mov eax, dword [esi + 0x35b2a8]
push eax
call fcn.0042ba20
test eax, eax
jne 0x41d986
mov ecx, dword [esi + 0x35b2ac]
mov edx, dword [esi + 0x35b2a8]
push ecx
lea eax, [esi + 0x2a60e4]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x41d986
mov eax, dword [esi + 0x2a54ac]
lea ebx, [esi + 0x2a54ac]
test eax, eax
je 0x41d67a
mov eax, dword [esi + 0x2a54b0]
test eax, eax
jne 0x41d67a
mov eax, dword [esi + 0x2a54b4]
test eax, eax
jne 0x41d67a
lea edi, [esi + 0x2a54c8]
mov ebp, str.gold
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [ebp]
jne 0x41d60d
test cl, cl
je 0x41d609
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [ebp + 1]
jne 0x41d60d
add eax, 2
add ebp, 2
test cl, cl
jne 0x41d5e8
xor eax, eax
jmp 0x41d612
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41d64d
mov ecx, dword [esp + 0x20]
push 0xffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push str.How_much_gold_to_drop_
push 1
push 0x66
push 0x565994
call fcn.00418030
mov ecx, 0x30e
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0x2a5501]
push edi
push eax
push 0x3e8
mov ecx, 0x8ab828
call fcn.00451910
mov dword [esi + 0x2a54b0], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esi + 0x35b2b4]
mov edx, dword [esi + 0xf5330]
mov ebp, dword [esi + 0x35b2b0]
mov edi, dword [esi + 0xf532c]
mov eax, ebx
mov ecx, ebp
sub eax, edx
sub ecx, edi
xor edi, edi
lea edx, [eax + eax*2]
lea eax, [ecx + edx*8]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 6
lea ecx, [eax + esi + 0x474]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x20], eax
je 0x41d6e7
mov edx, dword [eax + 4]
cmp edx, ebp
jne 0x41d6de
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x41d6de
cmp edx, dword [esi + 0x2f884c]
jne 0x41d6de
cmp eax, dword [esi + 0x2f8850]
je 0x41d780
inc edi
add ecx, 4
cmp edi, 0x64
jl 0x41d6b2
mov eax, dword [esi + 0x364444]
test eax, eax
je 0x41d95d
mov ecx, dword [eax + 0x61c74]
test ecx, ecx
jne 0x41d95d
mov dword [esi + 0x364450], eax
mov edx, dword [eax + 0xcc]
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 0xd0]
mov dword [esp + 0x14], ecx
mov cl, byte [eax + 0x88]
cmp cl, 0x32
jne 0x41d82a
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov edx, dword [esi + 0x428040]
sub edx, eax
cmp edx, 0x1f4
jbe 0x41d76a
mov eax, dword [esi + 0x2f660c]
test eax, eax
jne 0x41d762
mov eax, dword [esi + 0x364444]
mov ecx, dword [eax + 4]
push ecx
mov ecx, 0x8ab828
call fcn.00451740
call edi
mov dword [esi + 0x428040], eax
mov dword [esi + 0x364450], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
xor ebp, ebp
mov eax, 0x72b06c
cmp dword [eax], 0
je 0x41d78d
inc ebp
add eax, 0xc2c
cmp eax, 0x74e054
jl 0x41d787
mov eax, 0x725148
cmp dword [eax], 0
je 0x41d7a4
inc ebp
add eax, 0xc24
cmp eax, 0x729a20
jl 0x41d79e
mov edi, dword [esp + 0x20]
mov esi, str.gold
lea eax, [edi + 0x1e]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x41d7e4
test cl, cl
je 0x41d7e0
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x41d7e4
add eax, 2
add esi, 2
test cl, cl
jne 0x41d7bc
xor eax, eax
jmp 0x41d7e9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41d80c
cmp ebp, 0x2e
jl 0x41d80c
mov ecx, dword [esp + 0x10]
push str.Bag_full__cannot_pick_more.
call fcn.00415280
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push eax
push ecx
mov ecx, 0x8ab828
call fcn.00451970
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call ebx
xor edx, edx
mov dl, ah
test dl, dl
jne 0x41d89e
mov eax, dword [esi + 0x364444]
cmp byte [eax + 0x88], 3
je 0x41d89e
mov ecx, dword [eax + 0x61c70]
cmp ecx, 0xff
je 0x41d89e
cmp ecx, 0x6bef
je 0x41d89e
lea ecx, [esi + 0x2f8780]
cmp eax, ecx
jne 0x41d986
mov eax, dword [esi + 0x35b2ac]
mov edx, dword [esi + 0x35b2a8]
push 0
push 0
push 0xffffffffffffffff
push eax
push edx
mov dword [esi + 0x364450], 0
call fcn.00412270
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8
mov eax, dword [esi + 0x364444]
mov al, byte [eax + 0x8a]
cmp al, 0x1a
je 0x41d986
cmp al, 0x71
je 0x41d986
cmp al, 0x72
je 0x41d986
cmp al, 0x73
je 0x41d986
mov ecx, dword [esi + 0x364450]
push 0x28
add ecx, 8
push ecx
call fcn.00468bf0
add esp, 8
test eax, eax
jne 0x41d986
mov eax, dword [esi + 0x364444]
xor edi, edi
mov cl, byte [eax + 0x88]
test cl, cl
je 0x41d927
cmp cl, 1
je 0x41d927
cmp cl, 3
jne 0x41d93d
cmp byte [eax + 0xc0], 4
je 0x41d938
cmp dword [eax + 0x61c74], edi
jne 0x41d938
push 0x10
call ebx
xor edx, edx
mov dl, ah
test dl, dl
je 0x41d93d
mov dword [esi + 0x364450], edi
jmp 0x41d93d
cmp byte [eax + 0xc0], 0x13
je 0x41d938
cmp dword [eax + 0x61c74], edi
je 0x41d93d
mov edi, 1
mov ecx, dword [esi + 0x364444]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 0x35b2ac]
mov edx, dword [ecx + 4]
mov ecx, dword [esi + 0x35b2a8]
push edi
push edx
push eax
push ecx
jmp 0x41d97b
mov edx, dword [esi + 0x35b2ac]
mov eax, dword [esi + 0x35b2a8]
push 0
push 0
push 0xffffffffffffffff
push edx
mov dword [esi + 0x364450], 0
push eax
lea ecx, [esi + 0x2f8780]
call fcn.00412270
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8