Function at 0x49ba40
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x5c
mov eax, dword [0x690c9c]
mov ecx, dword [eax + 0x5d8]
mov edx, dword [eax + 0x5dc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
mov dword [esp + 0x54], ecx
mov ecx, dword [eax + 0x570]
test ecx, ecx
push edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0x5c], edx
mov edx, 0x7fff
je 0x49ba87
mov ebx, dword [ecx + 0x24]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ecx
jmp 0x49baa0
mov ecx, 0xffff8000
mov word [esp + 0x3c], cx
mov word [esp + 0x3e], cx
mov word [esp + 0x38], dx
mov word [esp + 0x3a], dx
cmp dword [esp + 0x78], 2
je 0x49bac2
mov cx, word [esi + 6]
cmp cx, word [esi + 2]
jl 0x49bf97
mov cx, word [esi + 4]
cmp cx, word [esi]
jl 0x49bf97
mov ecx, dword [esi]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
movsx edi, word [esp + 0x40]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x695400]
lea esi, [ecx - 0x8000]
cmp edi, esi
jle 0x49bae9
sub word [esp + 0x40], cx
movsx edi, word [esp + 0x44]
sub edx, ecx
cmp edi, edx
jge 0x49baf9
add word [esp + 0x44], cx
movsx edi, word [esp + 0x42]
cmp edi, esi
jle 0x49bb07
sub word [esp + 0x42], cx
movsx esi, word [esp + 0x46]
cmp esi, edx
jge 0x49bb15
add word [esp + 0x46], cx
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x5d8], edx
mov dword [eax + 0x5dc], ecx
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x14]
mov ecx, dword [eax + ecx*4 + 0x11c]
xor edx, edx
cmp ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x34], ecx
je 0x49bf7b
mov esi, ecx
lea esp, [esp]
cmp dword [esi + 0xcc], 0
je 0x49bdd4
cmp dword [esi + 8], 0
jne 0x49bdd4
mov edx, dword [esi + 0xc]
imul edx, edx, 0x84
mov ecx, dword [edx + 0x62d94c]
test ecx, ecx
je 0x49bb96
lea eax, [esi + 0xa4]
mov dword [esp + 0x30], eax
jmp 0x49bb9e
lea edx, [esp + 0x48]
mov dword [esp + 0x30], edx
cmp dword [esp + 0x78], 0
mov edx, dword [esi + 0x9c]
lea eax, [esi + 0x9c]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
jne 0x49bc05
test ecx, ecx
je 0x49bbc6
lea eax, [esi + 0xa4]
movzx ecx, word [eax]
cmp word [esp + 0x38], cx
jle 0x49bbd5
mov word [esp + 0x38], cx
movzx ecx, word [eax + 2]
cmp word [esp + 0x3a], cx
jle 0x49bbe5
mov word [esp + 0x3a], cx
movzx ecx, word [eax + 4]
cmp word [esp + 0x3c], cx
jge 0x49bbf5
mov word [esp + 0x3c], cx
movzx eax, word [eax + 6]
cmp word [esp + 0x3e], ax
jge 0x49bc05
mov word [esp + 0x3e], ax
lea eax, [esp + 0x50]
push eax
push esi
call fcn.0045c740
add esp, 8
test eax, eax
je 0x49bca9
mov bx, word [esp + 0x50]
cmp word [esp + 0x38], bx
jle 0x49bc2c
mov word [esp + 0x38], bx
mov di, word [esp + 0x52]
cmp word [esp + 0x3a], di
jle 0x49bc3d
mov word [esp + 0x3a], di
mov dx, word [esp + 0x54]
cmp word [esp + 0x3c], dx
jge 0x49bc4e
mov word [esp + 0x3c], dx
mov cx, word [esp + 0x56]
cmp word [esp + 0x3e], cx
jge 0x49bc5f
mov word [esp + 0x3e], cx
mov ax, word [esp + 0x48]
cmp bx, ax
jge 0x49bc71
mov ax, bx
mov word [esp + 0x48], ax
mov bx, word [esp + 0x4a]
cmp di, bx
jge 0x49bc83
mov bx, di
mov word [esp + 0x4a], bx
mov di, word [esp + 0x4c]
cmp dx, di
jle 0x49bc95
mov di, dx
mov word [esp + 0x4c], di
mov bp, word [esp + 0x4e]
cmp cx, bp
jle 0x49bcbd
mov bp, cx
mov word [esp + 0x4e], bp
jmp 0x49bcbd
mov bp, word [esp + 0x4e]
mov di, word [esp + 0x4c]
mov bx, word [esp + 0x4a]
mov ax, word [esp + 0x48]
mov cx, word [esp + 0x40]
cmp ax, cx
jle 0x49bcd0
movzx ecx, ax
mov dword [esp + 0x2c], ecx
jmp 0x49bcd7
movzx edx, cx
mov dword [esp + 0x2c], edx
mov ax, word [esp + 0x42]
cmp bx, ax
movzx edx, bx
jg 0x49bce7
movzx edx, ax
cmp di, word [esp + 0x44]
movzx ecx, di
jl 0x49bcf6
movzx ecx, word [esp + 0x44]
mov ax, word [esp + 0x46]
cmp bp, ax
jge 0x49bd05
movzx eax, bp
jmp 0x49bd08
movzx eax, ax
cmp word [esp + 0x2c], cx
jg 0x49bdd4
cmp dx, ax
jg 0x49bdd4
mov ebp, dword [esp + 0x78]
cmp ebp, 1
je 0x49bd3b
cmp ebp, 2
jne 0x49be1f
cmp dword [esi + 0x88], 0xffffffff
je 0x49bdd4
mov edx, dword [esi + 0xc]
imul edx, edx, 0x84
cmp dword [edx + 0x62d904], 0
je 0x49bdd4
cmp dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x70]
je 0x49bd73
mov eax, dword [esp + 0x14]
push eax
mov eax, ebx
mov dword [esp + 0x20], 1
call fcn.004dbf50
add esp, 4
cmp ebp, 2
jne 0x49bd83
mov edi, dword [esp + 0x30]
mov eax, ebx
call fcn.00522600
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x7c]
imul ecx, ecx, 0x84
mov eax, dword [ecx + 0x62d904]
push edx
push esi
push ebx
call eax
add esp, 0xc
cmp dword [esi + 0x44], 0
je 0x49bdc8
mov ecx, dword [esi + 0xc]
imul ecx, ecx, 0x84
mov edx, dword [ecx + 0x62d938]
push esi
call edx
add esp, 4
test eax, eax
je 0x49bdc8
push ebx
mov eax, esi
call fcn.0045c7f0
add esp, 4
cmp ebp, 2
jne 0x49bdd4
mov eax, ebx
call fcn.005226a0
mov esi, dword [esi + 0x94]
cmp dword [esp + 0x34], esi
jne 0x49bb60
mov ebx, dword [esp + 0x78]
test ebx, ebx
jne 0x49bf4f
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x49bf4f
mov eax, dword [esp + esi*4 + 0x5c]
mov ecx, dword [eax + 0xc]
sub esi, 1
imul ecx, ecx, 0x84
mov edx, dword [ecx + 0x62d8fc]
push eax
push edi
call edx
add esp, 8
jmp 0x49bdf8
xor ebx, ebx
cmp ebp, ebx
jne 0x49bdd4
cmp dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x70]
je 0x49be9f
push ebp
mov eax, edi
mov dword [esp + 0x20], ebx
call fcn.004dbf50
mov eax, dword [ebp*4 + 0x6291a0]
add esp, 4
sub eax, ebx
je 0x49be76
mov ecx, 1
sub eax, ecx
je 0x49be68
sub eax, ecx
jne 0x49be9f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
jmp 0x49be9f
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
jmp 0x49be9f
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x40]
push eax
mov ebx, edi
mov dword [esp + 0x28], 1
call fcn.0049b320
mov ebp, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x88], 0xffffffff
setne bl
cmp dword [esp + 0x24], 0
jne 0x49beb6
test ebx, ebx
jne 0x49beeb
test byte [esi + 0xdc], 1
je 0x49bed5
mov eax, dword [esp + 0x20]
cmp eax, 2
jge 0x49bed5
mov dword [esp + eax*4 + 0x60], esi
add eax, 1
mov dword [esp + 0x20], eax
jmp 0x49beeb
mov ecx, dword [esi + 0xc]
imul ecx, ecx, 0x84
mov edx, dword [ecx + 0x62d8fc]
push esi
push edi
call edx
add esp, 8
cmp dword [esi + 4], 0
je 0x49bf05
cmp dword [esi + 0xd8], 0
je 0x49bf05
push ebp
mov eax, esi
call fcn.0049b700
add esp, 4
cmp dword [esi + 0x44], 0
je 0x49bf2f
mov eax, dword [esi + 0xc]
imul eax, eax, 0x84
mov ecx, dword [eax + 0x62d938]
push esi
call ecx
add esp, 4
test eax, eax
je 0x49bf2f
push edi
mov eax, esi
call fcn.0045c7f0
add esp, 4
test ebx, ebx
je 0x49bdd4
cmp dword [esp + 0x28], 0
je 0x49bdd4
mov dword [esp + 0x18], 1
jmp 0x49bdd4
cmp dword [esp + 0x18], 0
je 0x49bf76
cmp dword [esp + 0x1c], 0
jne 0x49bf76
test ebx, ebx
jne 0x49bf76
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x70]
lea eax, [esp + 0x40]
push eax
call fcn.0049b320
add esp, 4
mov eax, dword [0x690c9c]
mov ecx, dword [esp + 0x14]
add ecx, 1
cmp ecx, 0xc
mov dword [esp + 0x14], ecx
jl 0x49bb31
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
cmp dword [edi + 0x34], 3
jge 0x49bfce
mov cx, word [eax + 0x3aa]
cmp cx, word [eax + 0x3a6]
jl 0x49bfce
mov dx, word [eax + 0x3a8]
cmp dx, word [eax + 0x3a4]
jl 0x49bfce
push 1
mov eax, edi
call fcn.004db9f0
mov eax, dword [0x690c9c]
add esp, 4
cmp dword [esp + 0x78], 0
jne 0x49c086
mov cx, word [esi + 6]
cmp cx, word [esi + 2]
jl 0x49bffb
mov dx, word [esi + 4]
cmp dx, word [esi]
jl 0x49bffb
push edi
push esi
call fcn.00431bc0
mov eax, dword [0x690c9c]
add esp, 8
mov cx, word [esp + 0x3a]
cmp cx, word [eax + 0x186]
jne 0x49c033
mov dx, word [esp + 0x38]
cmp dx, word [eax + 0x184]
jne 0x49c033
mov cx, word [esp + 0x3e]
cmp cx, word [eax + 0x18a]
jne 0x49c033
mov dx, word [esp + 0x3c]
cmp dx, word [eax + 0x188]
je 0x49c086
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [eax + 0x184], ecx
mov dword [eax + 0x188], edx
mov esi, dword [eax + 0x3a0]
test esi, esi
je 0x49c086
cmp dword [esi + 0x110], 0
jne 0x49c086
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
push 5
mov dword [esi + 0x118], eax
push 0x4f0e40
add esi, 0xf8
push esi
call fcn.00454530
mov eax, dword [0x690c9c]
add esp, 0xc
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x5d8], ecx
mov dword [eax + 0x5dc], edx
pop ebx
add esp, 0x5c
ret