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

Disassembly:
sub esp, 0x78
mov word [esp + 0xe], 0xfffe
push ebx
push esi
push edi
xor ebx, ebx
mov word [esp + 0x14], bx
push ebp
mov word [esp + 0x16], bx
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x98]
mov byte [esp + 0x15], bl
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x415604
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x20], 0
cmp dword [esi + 0x44], 0xb
mov dword [esp + 0x30], eax
je 0x41562f
cmp dword [esi + 0x48], 0xb
jne 0x41562f
mov word [esp + 0x1e], 0xfff2
mov ebp, dword [esp + 0x8c]
jmp 0x416084
cmp dword [esi + 0x54], 0xb
jne 0x41564e
cmp dword [esi + 0x38], 0
jne 0x41564e
mov word [esp + 0x1e], 0xfff3
mov ebp, dword [esp + 0x8c]
jmp 0x416084
mov cx, word [esi + 0x50]
mov ax, cx
and ax, 0x100
cmp ax, 1
sbb al, al
inc al
mov byte [esp + 0x13], al
mov ax, cx
and ax, 0x200
cmp ax, 1
sbb al, al
inc al
mov byte [esp + 0x14], al
mov ax, cx
and ax, 0x400
cmp ax, 1
sbb al, al
and cx, 0x800
inc al
cmp cx, 1
push 0x18
mov ebp, dword [esp + 0x90]
push 0x98
mov byte [esp + 0x19], al
push ebp
sbb al, al
inc al
mov byte [esp + 0x1e], al
call fcn.0040f980
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x416084
mov ecx, dword [esp + 0x90]
mov dword [ebx + 0x1c], ecx
mov eax, dword [ecx + 0x2c]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x2c], ebx
mov eax, dword [esi + 0x34]
test eax, eax
je 0x4156f2
push 0x3e
push eax
mov eax, dword [ebp + 0x44]
push eax
push ebp
call fcn.004aa900
add esp, 0x10
mov dword [ebx + 0x48], eax
test eax, eax
je 0x416084
push ebx
push ebp
call fcn.004178d0
mov word [esp + 0x20], ax
add esp, 8
test ax, ax
jne 0x416084
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41571a
mov dword [ebx + 0x4c], 0x1f4
jmp 0x415729
cmp eax, 0x7fffffff
jb 0x415726
mov eax, 0x7fffffff
mov dword [ebx + 0x4c], eax
mov ax, word [esi + 0x58]
cmp ax, 0xffff
je 0x415893
test ax, ax
je 0x415741
mov edi, dword [esi + 0x5c]
jmp 0x415769
mov eax, dword [esi + 8]
test eax, eax
je 0x41575b
mov cx, word [eax + 0x3a]
test cx, cx
je 0x41575b
mov word [esp + 0x24], cx
mov edi, dword [eax + 0x3c]
jmp 0x41576e
mov ecx, dword [esp + 0x90]
mov ax, word [ecx + 0x42]
mov edi, dword [ecx + 0x44]
mov word [esp + 0x24], ax
xor eax, eax
cmp word [esp + 0x24], ax
je 0x415893
test edi, edi
je 0x415893
mov word [esp + 0x1c], ax
mov word [esp + 0x1a], ax
cmp word [esp + 0x24], ax
jle 0x4157ca
lea eax, [esp + 0x28]
push 0
movsx ecx, word [esp + 0x1e]
push eax
push 0
mov edx, dword [edi + ecx*4]
push edx
push ebp
call fcn.004254c0
mov cx, word [esp + 0x3c]
add esp, 0x14
mov dx, word [esp + 0x24]
inc word [esp + 0x1a]
add word [esp + 0x1c], cx
cmp word [esp + 0x1a], dx
jl 0x415794
cmp word [esp + 0x1c], 0
je 0x415893
mov ax, word [esp + 0x1c]
push 0x3e
shl ax, 2
mov ecx, dword [ebp + 0x44]
push eax
push ecx
push ebp
call fcn.004aa140
mov dword [esp + 0x44], eax
add esp, 0x10
test eax, eax
je 0x416084
mov word [esp + 0x1c], 0
mov word [esp + 0x1a], 0
cmp word [esp + 0x24], 0
jle 0x415857
lea eax, [esp + 0x28]
push 1
movsx ecx, word [esp + 0x20]
mov edx, dword [esp + 0x38]
push eax
lea eax, [edx + ecx*4]
movsx ecx, word [esp + 0x22]
push eax
mov edx, dword [edi + ecx*4]
push edx
push ebp
call fcn.004254c0
mov cx, word [esp + 0x3c]
add esp, 0x14
mov dx, word [esp + 0x24]
mov word [esp + 0x16], ax
inc word [esp + 0x1a]
add word [esp + 0x1c], cx
cmp word [esp + 0x1a], dx
jl 0x415811
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [ebx + 0x38]
push ecx
push edx
push 0x17
push ebp
call fcn.0040fa70
mov word [esp + 0x2c], ax
mov ecx, dword [esp + 0x48]
add esp, 0x14
mov edx, dword [ebp + 0x44]
push ecx
push edx
push ebp
call fcn.004aa460
add esp, 0xc
cmp word [esp + 0x18], 0
jne 0x416084
mov cx, word [esi + 0x60]
cmp cx, 0xffff
je 0x4158ed
test cx, cx
je 0x4158a8
mov eax, dword [esi + 0x64]
jmp 0x4158cb
mov eax, dword [esi + 8]
test eax, eax
je 0x4158bd
mov cx, word [eax + 0x42]
test cx, cx
je 0x4158bd
mov eax, dword [eax + 0x44]
jmp 0x4158cb
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 0x54]
mov cx, word [ecx + 0x52]
test cx, cx
je 0x4158ed
test eax, eax
je 0x4158ed
push eax
push ecx
lea eax, [ebx + 0x40]
push eax
push 0x1c
push ebp
call fcn.0040fa70
add esp, 0x14
test eax, eax
jne 0x416084
mov eax, dword [esp + 0x50]
push 1
push eax
call fcn.0040ff70
add esp, 8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x415914
cmp dword [esi + 8], 0
jne 0x415925
test eax, eax
je 0x415931
cmp word [esi + 0x68], 0
ja 0x415925
test eax, eax
je 0x415931
cmp dword [esi + 8], 0
je 0x415931
cmp word [esi + 0x68], 0
jbe 0x415931
mov word [esp + 0x1e], 0xfff2
jmp 0x416084
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4159c6
cmp dword [ecx + 4], 0x18
jne 0x4159ba
cmp dword [ecx + 0xc], 0
jne 0x4159ba
cmp word [ecx + 8], 0x222
jne 0x4159ae
cmp word [ecx + 0xa], 0
jne 0x4159ae
mov eax, dword [ecx + 0x64]
test eax, eax
jne 0x415961
mov eax, dword [ecx + 0x20]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x41598d
mov byte [esp + 0x15], 1
cmp dword [esp + 0x20], 0
je 0x415b60
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x41598d
mov dword [esp + 0x20], 0
cmp dword [esp + 0x20], 0
je 0x415b60
cmp dword [esi + 0x10], 0
je 0x415b60
mov word [esp + 0x1e], 0xfff2
jmp 0x416084
mov word [esp + 0x1e], 0xffe2
jmp 0x416084
mov word [esp + 0x1e], 0xfff6
jmp 0x416084
test eax, eax
je 0x4159d0
mov dword [esp + 0x20], eax
jmp 0x415971
mov ax, word [esi + 0x68]
test ax, ax
je 0x415971
cmp ax, 0xffff
je 0x415971
mov eax, dword [esi + 0x74]
sub eax, 0xb
cmp eax, 1
sbb eax, eax
neg eax
mov word [ebx + 0x8c], ax
cmp dword [esi + 0x34], 0
je 0x415a0a
test ax, ax
je 0x415a0a
mov word [esp + 0x1e], 0xfff2
jmp 0x416084
cmp dword [esi + 0x70], 1
jne 0x415b54
test ax, ax
je 0x415a23
cmp dword [esi + 0x44], 0xb
je 0x415b54
lea eax, [ebx + 0x84]
lea ecx, [ebx + 0x80]
push eax
push ecx
xor eax, eax
mov ecx, dword [esi + 0x6c]
mov ax, word [esi + 0x68]
push eax
push ecx
push ebp
call fcn.00417d80
add esp, 0x14
test ax, ax
jne 0x416084
xor ecx, ecx
mov eax, dword [ebx + 0x84]
mov cx, word [esi + 0x68]
cmp ecx, eax
je 0x415a78
push ecx
test eax, eax
je 0x415b3f
push eax
push 0xffff9911
push 3
push ebp
call fcn.004bda00
add esp, 0x14
lea edi, [esp + 0x34]
xor eax, eax
mov byte [esp + 0x28], 0
mov ecx, 7
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x49], al
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push eax
push ecx
push ebp
call fcn.0048b230
add esp, 0xc
test eax, eax
jne 0x416084
lea eax, [esp + 0x28]
push 0x3e
push eax
mov ecx, dword [ebp + 0x44]
push ecx
push ebp
call fcn.004aa900
mov dword [esp + 0x30], eax
add esp, 0x10
mov dword [ebx + 0x88], eax
test eax, eax
je 0x416084
mov dword [esp + 0x24], 0
mov eax, dword [esi + 0x70]
mov dword [ebx + 0x90], eax
cmp dword [ebx + 0x84], 0
jbe 0x415971
xor edi, edi
lea eax, [esp + 0x28]
push 1
push eax
mov ecx, dword [ebx + 0x80]
mov edx, dword [ecx + edi]
push edx
push 3
push ebp
call fcn.0048d6e0
add esp, 8
push eax
push ebp
call fcn.0048ed00
add esp, 0x14
test ax, ax
jne 0x416084
add edi, 4
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp dword [ebx + 0x84], eax
ja 0x415af8
jmp 0x415971
push 0xffff9912
push 3
push ebp
call fcn.004bda00
add esp, 0x10
jmp 0x416084
mov word [esp + 0x1e], 0xfff2
jmp 0x416084
mov eax, dword [esi + 0x18]
test eax, eax
je 0x415b6d
cmp dword [esi + 0x1c], 0
jne 0x415b83
cmp dword [esi + 0x1c], 0
je 0x415b79
cmp dword [esi + 0x28], 0
jne 0x415b83
test eax, eax
je 0x415b8f
cmp dword [esi + 0x28], 0
je 0x415b8f
mov word [esp + 0x1e], 0xfff2
jmp 0x416084
cmp dword [esi + 0x48], 0xb
je 0x415b9b
cmp dword [esi + 0x54], 0xb
jne 0x415bb3
push 1
push 0
push 2
push ebp
call fcn.0040f090
add esp, 0x10
test ax, ax
jne 0x416084
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x415bd5
push 0x3e
push eax
mov eax, dword [ebp + 0x44]
push eax
push ebp
call fcn.004aa900
add esp, 0x10
mov dword [ebx + 0x30], eax
test eax, eax
je 0x416084
mov eax, dword [esi + 0x10]
test eax, eax
je 0x415bf7
push 0x3e
push eax
mov eax, dword [ebp + 0x44]
push eax
push ebp
call fcn.004aa900
add esp, 0x10
mov dword [ebx + 0x24], eax
test eax, eax
je 0x416084
mov eax, dword [esi + 0x78]
lea edi, [ebx + 0x78]
test eax, eax
jne 0x415c0b
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx + 0x64]
push 0
mov dword [edi], eax
mov dx, word [ebx + 0x42]
push 0
mov eax, dword [edi]
mov ecx, dword [ebx + 0x44]
push eax
push ecx
push edx
lea eax, [ebx + 0x34]
mov dx, word [esi + 0x24]
push eax
mov ecx, dword [esi + 0x28]
mov eax, dword [ebx + 0x30]
push ecx
push edx
mov ecx, dword [esp + 0x50]
push eax
mov edx, dword [esp + 0xb4]
push ecx
push edx
call fcn.0040a5d0
add esp, 0x2c
test ax, ax
jl 0x416084
cmp dword [esp + 0x20], 0
mov eax, dword [esi + 4]
mov dword [ebx + 0x18], eax
je 0x415c78
mov eax, dword [esp + 0x20]
push 0x3e
push eax
mov ecx, dword [ebp + 0x44]
push ecx
push ebp
call fcn.004aa900
add esp, 0x10
mov dword [ebx + 0x20], eax
test eax, eax
je 0x416084
mov eax, dword [esi + 0x18]
test eax, eax
je 0x415c9a
push 0x3e
push eax
mov eax, dword [ebp + 0x44]
push eax
push ebp
call fcn.004aa900
add esp, 0x10
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x416084
mov edx, dword [ebx + 0x24]
test edx, edx
je 0x415ced
mov ecx, dword [esi + 0x14]
test ecx, ecx
jne 0x415cb2
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx + 0x60]
push 0
mov eax, dword [ebx + 0x44]
push 0
push 0
push eax
mov ax, word [ebx + 0x42]
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x44]
push eax
lea eax, [ebx + 0x28]
push eax
push 0
push 0
push edx
push ecx
mov ecx, dword [esp + 0xb8]
push ecx
call fcn.0040a5d0
add esp, 0x2c
test ax, ax
jne 0x416084
cmp dword [ebx + 0x28], 0
je 0x415d34
lea eax, [esp + 0x34]
push 0
mov dword [esp + 0x38], 0
push eax
mov ecx, dword [ebx + 0x28]
push ecx
push 0
push ebp
call fcn.004848d0
add esp, 0x14
test eax, eax
jne 0x416084
cmp dword [esp + 0x34], 0
je 0x415d34
mov eax, dword [ebx + 0x28]
push eax
push ebp
call fcn.00484260
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 0x28], eax
cmp dword [ebx + 0x34], 0
je 0x415d7b
lea eax, [esp + 0x34]
push 0
mov dword [esp + 0x38], 0
push eax
mov ecx, dword [ebx + 0x34]
push ecx
push 0
push ebp
call fcn.004848d0
add esp, 0x14
test eax, eax
jne 0x416084
cmp dword [esp + 0x34], 0
je 0x415d7b
mov eax, dword [ebx + 0x34]
push eax
push ebp
call fcn.00484260
mov eax, dword [esp + 0x3c]
add esp, 8
mov dword [ebx + 0x34], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x415db0
cmp dword [ebx + 0x34], 0
je 0x415db0
mov di, word [esi + 0x24]
lea eax, [ebx + 0x7c]
push eax
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x34]
push edx
push edi
mov edx, dword [esi + 0x1c]
push eax
push edx
push ecx
push ebp
call fcn.0040bf70
add esp, 0x1c
test ax, ax
jne 0x416084
mov eax, dword [esi + 0x38]
mov dword [ebx + 0x50], eax
mov ecx, dword [esi + 0x3c]
mov dword [ebx + 0x54], ecx
mov ax, word [esi + 0x40]
test ax, ax
mov word [ebx + 0x58], ax
jne 0x415dcf
mov word [ebx + 0x58], 0x1f
mov eax, dword [esi + 0x48]
sub eax, 0xb
cmp eax, 1
sbb al, al
neg al
mov byte [ebx + 0x5a], al
mov eax, dword [esi + 0x4c]
sub eax, 0xa
lea edi, [esp + 0x54]
mov ecx, 0xd
cmp eax, 1
sbb al, al
inc al
mov byte [ebx + 0x5b], al
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x7c]
sub eax, 0xa
cmp eax, 1
mov eax, 0
sbb ecx, ecx
and ecx, 3
cmp byte [esp + 0x11], 1
adc eax, 0xffffffff
and eax, 8
or ecx, eax
mov eax, 0
cmp byte [esp + 0x12], 1
adc eax, 0xffffffff
and eax, 0x20
or ecx, eax
cmp byte [esp + 0x13], 1
sbb eax, eax
inc eax
or ecx, eax
mov eax, 0
cmp byte [esp + 0x14], 1
adc eax, 0xffffffff
mov dl, byte [esi + 0x2d]
and eax, 2
mov byte [esp + 0x5b], dl
or ecx, eax
mov dword [esp + 0x54], ecx
mov cl, byte [esp + 0x15]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x5c], eax
mov byte [esp + 0x59], cl
mov edx, dword [ebx + 0x28]
mov dword [esp + 0x60], edx
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x90]
mov ecx, dword [ebx + 0x34]
add eax, 0x8a
mov dword [esp + 0x6c], ecx
cmp byte [eax], 0
je 0x415e8e
mov dword [esp + 0x64], eax
cmp word [ebx + 0x8c], 0
jne 0x415e9f
mov eax, dword [ebx + 0x6c]
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ebx
mov cl, byte [ebx + 0x5a]
mov eax, dword [esi + 0x44]
sub eax, 0xb
mov byte [esp + 0x85], cl
mov ecx, dword [esp + 0x54]
cmp eax, 1
sbb al, al
inc al
mov byte [esp + 0x84], al
mov dword [ebx + 0x94], ecx
cmp dword [esi + 0x54], 0xb
je 0x415f92
cmp word [ebx + 0x8c], 0
jne 0x415f92
lea edi, [ebx + 0x60]
push 0
lea eax, [esp + 0x58]
lea ecx, [ebx + 0x5c]
push eax
push ecx
push edi
push ebp
call fcn.0048f690
add esp, 0x14
test eax, eax
jne 0x416084
cmp byte [ebx + 0x5b], 0
je 0x415f24
push 1
mov eax, dword [ebx + 0x5c]
push 0x12
push eax
push ebp
call fcn.0048e960
add esp, 0x10
push fcn.00417430
mov eax, dword [ebx + 0x5c]
push 0x10
push eax
push ebp
call fcn.0048e960
add esp, 0x10
mov eax, dword [ebx + 0x5c]
push ebx
push 0x11
push eax
push ebp
call fcn.0048e960
add esp, 0x10
lea eax, [ebx + 0x68]
mov ecx, dword [ebx + 0x5c]
push eax
push ecx
push ebp
call fcn.0048f1e0
add esp, 0xc
mov ecx, dword [ebx + 0x5c]
push 0xe
push ecx
push ebp
call fcn.0048ea10
add esp, 0xc
mov dword [ebx + 0x64], eax
test eax, eax
jne 0x415ffe
push 0xf
mov eax, dword [ebx + 0x5c]
push eax
push ebp
call fcn.0048ea10
add esp, 0xc
mov dword [ebx + 0x64], eax
test eax, eax
jne 0x415ffe
mov dword [ebx + 0x64], 0x51b2c8
jmp 0x415ffe
lea ecx, [esp + 0x34]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
cmp word [ebx + 0x8c], ax
jne 0x415fb4
mov dword [esp + 0x34], 3
lea edi, [ebx + 0x60]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x54]
push eax
push ecx
push 0
push edi
push ebp
call fcn.0048f690
add esp, 0x14
test eax, eax
jne 0x416084
push 0x417670
mov eax, dword [edi]
push 9
push eax
push ebp
call fcn.0048fd30
add esp, 0x10
mov eax, dword [edi]
push ebx
push 0xa
push eax
push ebp
call fcn.0048fd30
mov dword [ebx + 0x64], 0
add esp, 0x10
push ebx
push ebp
call fcn.00417ac0
add esp, 8
test ax, ax
jne 0x416084
push ebp
call sub.KERNEL32.dll_GetTickCount
add esp, 4
mov dword [ebx + 0x74], eax
mov eax, dword [esp + 0x94]
mov dword [eax], ebx
cmp dword [esi + 0x44], 0xb
jne 0x4160b1
test byte [ebp + 0xa2], 0x10
je 0x416050
mov eax, dword [edi]
mov ecx, dword [esp + 0x90]
push eax
mov edx, dword [ecx + 0x20]
push edx
push ebp
call fcn.00452aa0
add esp, 0xc
test eax, eax
jne 0x416084
mov eax, dword [esp + 0x50]
push 0
push eax
call fcn.004226d0
add esp, 8
cmp word [ebx + 0x8c], 0
je 0x41607d
push ebx
push ebp
call fcn.00417b50
mov word [esp + 0x26], ax
add esp, 8
test ax, ax
jne 0x416084
mov word [esp + 0x1e], 0
cmp word [esp + 0x1e], 0
jge 0x4160d2
test ebx, ebx
je 0x41609a
push ebx
push ebp
call fcn.00416280
add esp, 8
cmp word [esp + 0x1e], 0
jge 0x4160da
cmp word [esp + 0x18], 0
jge 0x4160d2
mov ax, word [esp + 0x18]
jmp 0x4160df
mov eax, dword [edi]
push eax
push ebp
call fcn.00452ae0
add esp, 8
test eax, eax
je 0x41605f
mov eax, dword [ebp + 0x98]
mov ax, word [eax + 4]
mov word [esp + 0x1e], ax
jmp 0x416084
cmp word [esp + 0x1e], 0
jl 0x4160e4
mov ax, word [esp + 0x16]
mov word [esp + 0x1e], ax
mov ax, word [esp + 0x1e]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret