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

Disassembly:
sub esp, 0x74
mov eax, dword [0x10075e30]
push ebx
push ebp
mov ebp, dword [esp + 0x80]
push esi
push edi
mov dword [esp + 0x1c], eax
push 0x200
xor eax, eax
mov dword [esp + 0x38], 0xff
call fcn.004b15e0
add esp, 4
xor ebx, ebx
push ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov word [eax], bx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x1b], bl
call dword [0x1005f040]
mov edi, eax
add edi, 1
mov esi, ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
je 0x499901
lea ecx, [edi + edi]
push ecx
call fcn.004b1530
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov edx, ebp
cmp word [edx], bx
je 0x499a7c
xor edi, edi
mov dword [esp + 0x20], edi
movzx eax, word [ebp]
cmp ax, 0x22
mov cl, byte [esp + 0x17]
jne 0x49994f
cmp cl, bl
jne 0x499d41
cmp ax, ax
jne 0x49994f
cmp ebp, dword [esp + 0x88]
jne 0x49994f
mov eax, dword [esp + 0x28]
lea ecx, [eax + eax]
push ecx
push esi
mov byte [esp + 0x1f], 1
call dword [0x10075f84]
jmp 0x499a60
cmp ax, 0x20
jne 0x499b04
cmp cl, bl
je 0x499971
push esi
call dword [0x1005f040]
mov dx, word [ebp]
mov word [esi + eax*2], dx
jmp 0x499a60
sar edi, 1
lea eax, [edi + 1]
xor ebp, ebp
cmp eax, ebx
jbe 0x499989
add eax, eax
push eax
call fcn.004b1530
add esp, 4
mov ebp, eax
add edi, edi
lea ecx, [edi + 2]
push ecx
push ebp
call dword [0x10075f84]
mov edx, dword [esp + 0x88]
push edi
push edx
push ebp
call dword [0x10075f88]
push ebp
lea edi, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00498aa0
push ebp
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00498aa0
push 0x10061364
mov eax, edi
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00497ac0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x499a00
call fcn.004b16a0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
xor esi, esi
lea edi, [esp + 0x4c]
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
mov ecx, dword [edx]
push ebx
push eax
call fcn.004c0910
test eax, eax
jne 0x499b20
add esi, 1
add edi, 0xc
cmp esi, 2
jb 0x499a06
lea edi, [esp + 0x64]
mov esi, 1
mov eax, dword [edi - 0xc]
sub edi, 0xc
cmp eax, ebx
je 0x499a48
call fcn.004b16a0
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
sub esi, 1
jns 0x499a31
cmp ebp, ebx
je 0x499a58
mov eax, ebp
call fcn.004b16a0
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add ebp, 2
add edi, 2
cmp word [ebp], bx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x20], edi
jne 0x499912
mov esi, dword [esp + 0x88]
push esi
lea edi, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00498aa0
push esi
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00498aa0
push 0x10061364
mov ecx, edi
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00497ac0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x499ad1
call fcn.004b16a0
mov ebp, dword [esp + 0x1c]
xor esi, esi
lea edi, [esp + 0x4c]
jmp 0x499ae0
mov eax, dword [edi]
mov ecx, dword [ebp]
push ebx
push eax
call fcn.004c0910
test eax, eax
jne 0x499c1c
add esi, 1
add edi, 0xc
cmp esi, 2
jb 0x499ae0
jmp 0x499d10
cmp cl, bl
je 0x499a60
push esi
call dword [0x1005f040]
mov cx, word [ebp]
mov word [esi + eax*2], cx
jmp 0x499a60
push ebp
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00498aa0
mov esi, dword [esp + 0x38]
push esi
lea edi, [esp + 0x30]
call fcn.00498aa0
cmp esi, ebx
je 0x499b4f
mov eax, esi
call fcn.004b16a0
lea edx, [esp + 0x38]
push edx
xor eax, eax
call fcn.004930e0
mov eax, dword [esp + 0x18]
push eax
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], 0x1006137c
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00498aa0
push 0x200
xor eax, eax
call fcn.004b15e0
mov esi, dword [esp + 0x90]
mov edi, eax
add esp, 4
mov word [edi], bx
call fcn.00496b10
test eax, eax
mov eax, edi
je 0x499ee1
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499bb9
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499bc6
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
nop
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499be7
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499bd0
cmp ebp, ebx
je 0x499bf7
mov eax, ebp
call fcn.004b16a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x499c04
call fcn.004b16a0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x499f58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
jmp fcn.004b16a0
lea ecx, [esi + esi*2]
mov edx, dword [esp + ecx*4 + 0x4c]
push edx
lea edi, [esp + 0x30]
call fcn.00498aa0
lea eax, [esp + 0x38]
push eax
xor eax, eax
call fcn.004930e0
push 0x1005f2dc
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], 0x1006137c
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00498aa0
push 0x200
xor eax, eax
call fcn.004b15e0
mov esi, dword [esp + 0x90]
mov edi, eax
add esp, 4
mov word [edi], bx
call fcn.00496b10
test eax, eax
mov eax, edi
jne 0x499cf1
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499c93
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499ca0
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
lea esp, [esp]
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499cc7
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499cb0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x499cd9
call fcn.004b16a0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x499f58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
jmp fcn.004b16a0
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499d03
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499d10
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
lea esp, [esp]
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499d37
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499d20
jmp 0x499bf7
push esi
lea edi, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.00498aa0
push esi
lea edi, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00498aa0
push 0x10061364
mov ecx, edi
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00497ac0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x499d8f
call fcn.004b16a0
mov ebp, dword [esp + 0x1c]
xor esi, esi
lea edi, [esp + 0x4c]
lea esp, [esp]
mov eax, dword [edi]
mov ecx, dword [ebp]
push ebx
push eax
call fcn.004c0910
test eax, eax
jne 0x499dc0
add esi, 1
add edi, 0xc
cmp esi, 2
jb 0x499da0
jmp 0x499eb0
lea ecx, [esi + esi*2]
mov edx, dword [esp + ecx*4 + 0x4c]
push edx
lea edi, [esp + 0x30]
call fcn.00498aa0
lea eax, [esp + 0x38]
push eax
xor eax, eax
call fcn.004930e0
mov ecx, dword [esp + 0x18]
add ecx, 2
push ecx
lea edi, [esp + 0x70]
mov dword [esp + 0x6c], 0x1006137c
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
call fcn.00498aa0
push 0x200
xor eax, eax
call fcn.004b15e0
mov esi, dword [esp + 0x90]
mov edi, eax
add esp, 4
mov word [edi], bx
call fcn.00496b10
test eax, eax
mov eax, edi
jne 0x499e91
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499e3a
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499e47
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499e67
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499e50
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x499e79
call fcn.004b16a0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x499f58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
jmp fcn.004b16a0
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499ea3
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499eb0
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
lea esp, [esp]
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499ed7
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499ec0
jmp 0x499bf7
call fcn.004b16a0
mov eax, dword [esp + 0x6c]
cmp eax, ebx
je 0x499ef3
call fcn.004b16a0
mov eax, dword [esp + 0x3c]
cmp eax, ebx
je 0x499f00
call fcn.004b16a0
lea esi, [esp + 0x64]
mov edi, 1
lea esp, [esp]
mov eax, dword [esi - 0xc]
sub esi, 0xc
cmp eax, ebx
je 0x499f27
call fcn.004b16a0
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
sub edi, 1
jns 0x499f10
cmp ebp, ebx
je 0x499f37
mov eax, ebp
call fcn.004b16a0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x499f44
call fcn.004b16a0
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x499f58
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
jmp fcn.004b16a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret