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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4dfaba
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x517050]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0xec], 0
mov edi, dword [fcn.005210f8]
mov dword [esp + 0x10], 0
jbe 0x4115ae
lea esi, [ebx + 0xe78]
cmp byte [esi + 0x41], 0
je 0x411598
cmp dword [esi + 0x38], 0xffffffff
je 0x411594
cmp dword [esi + 0x3c], 0
jl 0x411594
cmp byte [esi + 0x41], 0
je 0x411594
mov eax, dword [esi]
push 0
push 0
push 0x147
push eax
mov byte [esi + 0x41], 0
call edi
test eax, eax
jl 0x411594
mov ecx, dword [esi]
push 0
push eax
push 0x150
push ecx
call edi
cmp eax, dword [esi + 0x44]
je 0x411583
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x38]
call fcn.00405850
test eax, eax
je 0x411591
mov edx, dword [ebp + 8]
mov byte [edx + 0xe8], 1
mov ebx, edx
jmp 0x411594
mov ebx, dword [ebp + 8]
mov byte [esi + 0x41], 0
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 0x6c
cmp eax, dword [ebx + 0xec]
mov dword [esp + 0x10], eax
jb 0x411530
cmp dword [ebx + 0xf8], 0
mov dword [esp + 0x10], 0
jbe 0x41162e
lea esi, [ebx + 0x13c9]
cmp byte [esi], 0
je 0x411618
cmp dword [esi - 9], 0xffffffff
je 0x411615
cmp byte [esi], 0
je 0x411615
mov eax, dword [esi - 0x41]
push 0
push 0
push pe_nt_image_headers32
push eax
mov byte [esi], 0
call edi
cmp eax, 1
jg 0x411615
cmp eax, dword [esi + 3]
je 0x411604
mov ebx, dword [esi - 5]
mov ecx, dword [esi - 0xd]
push eax
mov eax, dword [esi - 9]
call fcn.00405850
test eax, eax
je 0x411612
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xe8], 1
mov ebx, ecx
jmp 0x411615
mov ebx, dword [ebp + 8]
mov byte [esi], 0
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 0x68
cmp eax, dword [ebx + 0xf8]
mov dword [esp + 0x10], eax
jb 0x4115c5
cmp dword [ebx + 0xf0], 0
mov dword [esp + 0x10], 0
jbe 0x41168e
lea esi, [ebx + 0x518]
mov edx, dword [esi]
push 0
push 0
push 0xb8
push edx
call edi
test eax, eax
je 0x411678
lea eax, [esi - 0x20]
call fcn.0040dbd0
test eax, eax
je 0x41166a
mov byte [ebx + 0xe8], 1
mov eax, dword [esi]
push 0
push 0
push 0xb9
push eax
call edi
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 0x74
cmp eax, dword [ebx + 0xf0]
mov dword [esp + 0x10], eax
jb 0x411645
cmp dword [ebx + 0xf4], 0
mov dword [esp + 0x10], 0
jbe 0x4117c2
lea esi, [ebx + 0x15e4]
lea esp, [esp]
mov ecx, dword [esi]
push 0
push 0
push 0xb8
push ecx
call edi
test eax, eax
je 0x4117a8
or ebx, 0xffffffff
cmp dword [esi + 0x38], ebx
je 0x41178d
mov edx, dword [esi]
push 0
push 0
push 0xb8
push edx
call edi
test eax, eax
je 0x41178d
mov eax, dword [esi]
push 0
push 0
push 0xb9
push eax
call edi
test byte [0x532700], 1
jne 0x411744
or dword [0x532700], 1
mov dword [esp + 0x70], 0
call fcn.0041cdb6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x411863
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x4e0600
mov dword [0x5326fc], eax
call fcn.0043d441
add esp, 4
mov dword [esp + 0x70], ebx
push 0x5326fc
lea ecx, [esi - 0x20]
call fcn.00421656
mov ecx, dword [0x5326fc]
mov eax, dword [esi + 0x3c]
mov ebx, dword [esi + 0x38]
mov edi, dword [esi + 0x34]
mov dword [esp + 0x1c], ecx
push eax
mov eax, ebx
mov ecx, edi
call fcn.00405430
test eax, eax
je 0x41178d
mov edx, dword [esp + 0x1c]
push edx
push edi
mov ecx, ebx
call fcn.00405900
test eax, eax
je 0x41178d
mov eax, dword [ebp + 8]
mov byte [eax + 0xe8], 1
mov ecx, dword [esi]
push 0
push 0
push 0xb9
push ecx
call dword [fcn.005210f8]
mov edi, dword [fcn.005210f8]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 0x68
cmp eax, dword [ebx + 0xf4]
mov dword [esp + 0x10], eax
jb 0x4116b0
cmp dword [ebx + 0xfc], 0
mov dword [esp + 0x10], 0
jbe 0x4118ff
mov ebx, dword [ebp + 8]
add ebx, 0x1748
mov edx, dword [ebx - 0x54]
push 0
push 0
push 0xb8
push edx
call edi
test eax, eax
jne 0x411808
push eax
push eax
mov eax, dword [ebx + 0x20]
push 0xb8
push eax
call edi
test eax, eax
je 0x4118df
mov edi, dword [ebx - 0x18]
push ebx
call fcn.0040dac0
lea ecx, [ebx - 0x74]
push ecx
mov dword [esp + 0x1c], eax
call fcn.0040dac0
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 0xc8]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 0xd0]
push edi
mov ecx, esi
call fcn.00405430
test eax, eax
je 0x4118b9
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
movzx edx, word [ecx + eax]
movzx edx, dx
add eax, 2
mov edi, 4
cmp edx, edi
mov dword [esi + 0x34], eax
je 0x41186d
mov dword [esp + 0x1c], 0
jmp 0x41187f
push 0x80004005
call fcn.0040b720
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx], edx
add dword [esi + 0x34], edi
mov dword [esp + 0x1c], 1
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
movzx edx, word [ecx + eax]
movzx edx, dx
add eax, 2
cmp edx, edi
mov dword [esi + 0x34], eax
je 0x41189a
xor eax, eax
jmp 0x4118a9
mov edx, dword [esp + 0x18]
mov dword [eax + ecx], edx
add dword [esi + 0x34], edi
mov eax, 1
and eax, dword [esp + 0x1c]
je 0x4118b9
mov eax, dword [ebp + 8]
mov byte [eax + 0xe8], 1
mov ecx, dword [ebx - 0x54]
mov esi, dword [fcn.005210f8]
push 0
push 0
push 0xb9
push ecx
call esi
mov edx, dword [ebx + 0x20]
push 0
push 0
push 0xb9
push edx
call esi
mov edi, esi
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add eax, 1
add ebx, 0xe8
cmp eax, dword [ecx + 0xfc]
mov dword [esp + 0x10], eax
jb 0x4117e0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x100], 0
mov dword [esp + 0x10], 0
jbe 0x411a5c
mov esi, edx
add esi, 0x1aa8
xor ebx, ebx
mov eax, dword [esi - 0x13c]
push ebx
push ebx
push 0xb8
push eax
call edi
test eax, eax
jne 0x41196f
mov ecx, dword [esi - 0xc8]
push ebx
push ebx
push 0xb8
push ecx
call edi
test eax, eax
jne 0x41196f
mov edx, dword [esi - 0x54]
push ebx
push ebx
push 0xb8
push edx
call edi
test eax, eax
jne 0x41196f
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0xb8
push eax
call edi
test eax, eax
je 0x411a3a
mov edi, dword [esi - 0x100]
push esi
call fcn.0040dac0
lea ecx, [esi - 0x74]
push ecx
mov dword [esp + 0x20], eax
call fcn.0040dac0
lea edx, [esi - 0xe8]
push edx
mov dword [esp + 0x1c], eax
call fcn.0040dac0
mov dword [esp + 0x20], eax
lea eax, [esi - 0x15c]
push eax
call fcn.0040dac0
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0xc8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 0xd0]
push edi
mov ecx, ebx
call fcn.00405430
test eax, eax
je 0x4119f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
mov eax, ebx
call fcn.00405d60
test eax, eax
je 0x4119f0
mov edx, dword [ebp + 8]
mov byte [edx + 0xe8], 1
mov eax, dword [esi - 0x13c]
mov edi, dword [fcn.005210f8]
push 0
push 0
push 0xb9
push eax
call edi
mov ecx, dword [esi - 0xc8]
push 0
push 0
push 0xb9
push ecx
call edi
mov edx, dword [esi - 0x54]
push 0
push 0
push 0xb9
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0xb9
push eax
call edi
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add eax, 1
add esi, 0x1d0
cmp eax, dword [ecx + 0x100]
mov dword [esp + 0x10], eax
jb 0x411921
jmp 0x411a5e
xor ebx, ebx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x104], ebx
mov dword [esp + 0x10], ebx
jbe 0x411ffd
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
imul eax, eax, 0xd0
mov edx, dword [eax + ecx + 0x1be4]
push ebx
push ebx
lea esi, [eax + ecx]
push 0xb8
push edx
call edi
test eax, eax
jne 0x411aae
mov eax, dword [esi + 0x1c4c]
push ebx
push ebx
push 0xb8
push eax
call edi
test eax, eax
je 0x411fe3
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x70], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov byte [esp + 0x70], 2
call fcn.0041cdb6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x411863
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x70], 3
call fcn.0041cdb6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x411863
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebx
push ebx
mov byte [esp + 0x78], 4
mov ecx, dword [esi + 0x1be4]
push 0xb9
push ecx
call edi
mov edx, dword [esi + 0x1c4c]
push ebx
push ebx
push 0xb9
push edx
call edi
test byte [0x532700], 1
jne 0x411b91
or dword [0x532700], 1
mov byte [esp + 0x70], 5
call fcn.0041cdb6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x411863
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x4e0600
mov dword [0x5326fc], eax
call fcn.0043d441
add esp, 4
mov byte [esp + 0x70], 4
push 0x5326fc
lea ecx, [esi + 0x1bc4]
call fcn.00421656
mov edx, dword [0x5326fc]
cmp edx, ebx
jne 0x411baf
xor eax, eax
jmp 0x411bc3
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411bb4
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.0040bd90
test byte [0x532700], 1
jne 0x411c1a
or dword [0x532700], 1
mov byte [esp + 0x70], 6
call fcn.0041cdb6
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x411863
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x4e0600
mov dword [0x5326fc], eax
call fcn.0043d441
add esp, 4
mov byte [esp + 0x70], 4
push 0x5326fc
lea ecx, [esi + 0x1c2c]
call fcn.00421656
mov edx, dword [0x5326fc]
cmp edx, ebx
jne 0x411c38
xor eax, eax
jmp 0x411c4f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x411c40
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x24]
call fcn.0040bd90
mov esi, dword [esp + 0x18]
push 0xa
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.0043dfc2
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp esi, ecx
je 0x411d77
cmp eax, 0x10000
jge 0x411cd6
mov ebx, dword [esp + 0x58]
test ebx, ebx
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], eax
je 0x411cb0
mov edx, dword [esp + 0x60]
mov ecx, esi
sub ecx, ebx
sub edx, ebx
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x411cb0
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x5c], esi
jmp 0x411cd2
cmp ebx, esi
jbe 0x411cb9
call fcn.0043ddbb
push esi
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x64]
call fcn.004123a0
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x18], ecx
je 0x411d77
cmp word [ecx], 0x2c
jne 0x411d77
cmp word [ecx + 2], 0
lea edi, [ecx + 2]
je 0x411d77
push 0xa
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.0043dfc2
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp edi, ecx
mov ebx, eax
je 0x411d77
cmp ebx, 0x10000
jge 0x411d6f
mov eax, dword [esp + 0x58]
test eax, eax
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x28], ebx
je 0x411d49
mov edx, dword [esp + 0x60]
mov ecx, esi
sub ecx, eax
sub edx, eax
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x411d49
mov dword [esi], ebx
add esi, 4
mov dword [esp + 0x5c], esi
jmp 0x411d6b
cmp eax, esi
jbe 0x411d52
call fcn.0043ddbb
push esi
lea eax, [esp + 0x58]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x64]
call fcn.004123a0
mov ecx, dword [esp + 0x14]
cmp edi, ecx
jne 0x411ce0
xor esi, esi
cmp word [ecx], si
je 0x411e13
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411da7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411dcc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
cmp eax, esi
je 0x411ddd
push eax
call fcn.0041b414
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x58]
cmp eax, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
je 0x411e02
push eax
call fcn.0041b414
add esp, 4
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
jmp 0x411fdb
mov esi, dword [esp + 0x1c]
push 0xa
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.0043dfc2
add esp, 0xc
cmp esi, dword [esp + 0x14]
je 0x411e85
cmp eax, 0x10000
jge 0x411e85
mov ebx, dword [esp + 0x48]
test ebx, ebx
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
je 0x411e63
mov edx, dword [esp + 0x50]
mov ecx, esi
sub ecx, ebx
sub edx, ebx
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x411e63
mov dword [esi], eax
add esi, 4
mov dword [esp + 0x4c], esi
jmp 0x411e85
cmp ebx, esi
jbe 0x411e6c
call fcn.0043ddbb
push esi
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
call fcn.004123a0
mov eax, dword [esp + 0x14]
xor edi, edi
cmp word [eax], 0x2c
jne 0x411f21
cmp word [eax + 2], di
lea esi, [eax + 2]
je 0x411f21
push 0xa
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.0043dfc2
add esp, 0xc
cmp esi, dword [esp + 0x14]
mov ebx, eax
je 0x411f13
cmp ebx, 0x10000
jge 0x411f13
mov eax, dword [esp + 0x48]
cmp eax, edi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x28], ebx
je 0x411ef1
mov edx, dword [esp + 0x50]
mov ecx, esi
sub ecx, eax
sub edx, eax
sar ecx, 2
sar edx, 2
cmp ecx, edx
jae 0x411ef1
mov dword [esi], ebx
add esi, 4
mov dword [esp + 0x4c], esi
jmp 0x411f13
cmp eax, esi
jbe 0x411efa
call fcn.0043ddbb
push esi
lea eax, [esp + 0x48]
push eax
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
call fcn.004123a0
mov eax, dword [esp + 0x14]
cmp word [eax], 0x2c
je 0x411e95
cmp word [eax], di
jne 0x411f4f
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xd0]
mov esi, dword [ebx + 0xc8]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00405be0
test eax, eax
je 0x411f4f
mov byte [ebx + 0xe8], 1
mov byte [esp + 0x70], 3
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x70], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411f99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
cmp eax, edi
je 0x411faa
push eax
call fcn.0041b414
add esp, 4
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x58]
cmp eax, edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
je 0x411fcf
push eax
call fcn.0041b414
add esp, 4
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov edi, dword [fcn.005210f8]
xor ebx, ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add eax, 1
cmp eax, dword [ecx + 0x104]
mov dword [esp + 0x10], eax
jb 0x411a71
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4